Skip to content
SadPackets home

Close the phone book

Security › Hardening › OS hardeningLinux

Quillon & Fils' DNS server hands its whole zones to anyone who asks for a zone transfer. You run that server: let only the secondary copy them, while every ordinary lookup keeps working.

The situation

The security audit of Quillon & Fils came back with a finding on srv-dns, the company's DNS server: from an office workstation, the auditor asked for a zone transfer and got every zone it serves, the whole list of the company's names and addresses, hosts no page links to included. Only ns2, the secondary server, has any business copying those zones. You run srv-dns. Expected at the end: zone transfers are refused to every machine but ns2, for every zone; ns2 still copies them; and every ordinary lookup keeps answering the office.

Topology

eth1eth1eth1eth2eth1eth3pentest-ws gw srv-dns ns2

The network you inherit. Once the lab is running, you open a terminal on the nodes that allow it; the others are reached over the network only.

New to networking? The glossary explains the words our briefs use.