Quote:
Originally Posted by Shamulonga
I tried to run the following command after editing named.conf file :
$ listen-on { 127.0.0.1; 192.168.100.6; };
It returned the following error message:
-bash: syntax error near unexpected token `}'
|
Escape both {} chars, as well as the ; ones with a backslash, they are special to the shell. So
Code:
$ listen-on \{ 127.0.0.1\; 192.168.100.6\; \};
BTW: the last ; isn't needed, you are already at the end of the line.
But the previous ones would break your single command into multiple ones, so that the last } becomes a command of its own.