listen-on syntax error in bash
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 `}' Can anyone help resolve this error? Thank you |
Welcome to LQ,
I can't find a listen-on command anywhere. Have you tried to modify the syntax? It's complaining about the area near the close bracket. Have you tried removing the semicolon at the end of it all? Or the semicolon after the last IP address? |
What do you get from
Code:
named-checkconf |
Quote:
Code:
$ listen-on \{ 127.0.0.1\; 192.168.100.6\; \}; But the previous ones would break your single command into multiple ones, so that the last } becomes a command of its own. |
All times are GMT -5. The time now is 06:48 AM. |