[named] /etc/named.rfc1912.zones: missing ';' before '...'

-- Unit named.service has begun starting up.
Jul 28 18:13:34 hostname bash[7662]: /etc/named.rfc1912.zones:47: missing ';' before 'allow-update'

(1) 까닭

  named의 /etc/named.rfc1912.zones 파일에서 문장 끝에 머무름표( ; )를 빠뜨리면 이런 오류가 나올 수 있다.

zone "example.domain" IN {
	...
	update-policy {
		grant cert name _acme-challenge.example.domain txt;
	}
	allow-update { none; };
};

(2) 풀기

  { } 묶음(활짱 묶음)이 끝나는 곳에도 머무름표( ; )를 붙인다. 문장의 끝에 머무름표가 한 곳이라도 빠지면 같은 오류가 나온다.

zone "example.domain" IN {
	...
	update-policy {
		grant cert name _acme-challenge.example.domain txt;
	};
	allow-update { none; };
};

  잘 고쳐졌으면 명령줄에 아래와 같이 넣었들 때 아무것도 나오지 않는다.

$ sudo named-checkconf /etc/named.rfc1912.zones
2022/08/15 23:35 2022/08/15 23:35
글 걸기 주소 : 이 글에는 글을 걸 수 없습니다.

덧글을 달아 주세요