Portál AbcLinuxu, 16. srpna 2025 15:30
tcpdump -n udp port 53
by mohlo stačit. -n je tam kvůli tomu, aby si tcpdump negenroval DNS dotazy sám...
-i Listen on interface. If unspecified, tcpdump searches the system interface list for the lowest numbered, configured up interface (excluding loop- back). Ties are broken by choosing the earliest match.;-)
named.conf
options { directory "/var/named"; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ auth-nxdomain no; // Server neposkytuje informace o nasi siti query-source address * port 53; // Pro komunikaci s jinou DNS pouzij port 53 forward first; // Pokud neco nevi, pta se nejprve serveru // uvedenych ve forwarders forwarders { 10.109.151.1; 10.109.140.254; }; cleaning-interval 259200; // Procistuje tabulku pomocnho serveru od zaznamu // na ktere se nikdo neptal (v sekundach) }; key "rndc-key" { algorithm hmac-md5; secret "8CrFhDQFjoigc9KGDI7jJQ=="; }; controls { inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; }; }; // // a caching only nameserver config // zone "." IN { type hint; file "caching-example/named.ca"; }; zone "localhost" IN { type master; file "caching-example/localhost.zone"; allow-update { none; }; }; zone "0.0.127.in-addr.arpa" IN { type master; file "caching-example/named.local"; allow-update { none; }; };
$TTL 86400 @ IN SOA localhost. root.localhost. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS localhost. 1 IN PTR localhost.
$TTL 86400 $ORIGIN localhost. @ 1D IN SOA @ root ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum 1D IN NS @ 1D IN A 127.0.0.1
# Start of rndc.conf key "rndc-key" { algorithm hmac-md5; secret "8CrFhDQFjoigc9KGDI7jJQ=="; }; options { default-key "rndc-key"; default-server 127.0.0.1; default-port 953; }; # End of rndc.conf # Use with the following in named.conf, adjusting the allow list as needed: # key "rndc-key" { # algorithm hmac-md5; # secret "8CrFhDQFjoigc9KGDI7jJQ=="; # }; # # controls { # inet 127.0.0.1 port 953 # allow { 127.0.0.1; } keys { "rndc-key"; }; # }; # End of named.conf
/usr/sbin/rndc-confgen -h
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.