randyqx / apricot-sec2019

APRICOT 2019 Security Workshop 2019.02.18-22
Other
0 stars 2 forks source link

3-3-2.dns-security-lab - Debugging BIND (named.conf and zone file errors) #3

Open pswapneel opened 5 years ago

pswapneel commented 5 years ago

Adding these under Issues, though they are more of suggestions which could be helpful for participants of the workshop & added in the slides. If you want me to send these using an alternative medium(email?), please let me know.

I have found debugging errors (syntax etc) in BIND to be really hard to track down. During the lab, was going in circles till I used a couple of commands which pointed the error. Attached is the screenshot.

screenshot 2019-02-19 08 43 58
keiichishima commented 5 years ago

Can wee see the contents of /etc/bind/group19.workshop??

pswapneel commented 5 years ago

@keiichishima Thank you for looking into this. I don't have the contents of that file. The error was due to a typing mistake. i.e "Problem is between computer and chair". :-)

But to identify that single typing mistake took considerable amount of time as named/bind wouldn't point to the exact problem/line number or the configuration file.

The reason for creating this issue was to suggest addition of the two commands in the slides so that in the future workshops, it can help participants in debugging syntax issues etc in the BIND configurations.

keiichishima commented 5 years ago

OK, I now understood. Yes, it is a good idea to include how to use the config check commands in the workshop.