Transferring zones with named (bind) can be done manually with this command:
dig <master_dns_server> <zone> axfr
Example:
dig 10.1.1.6 example.com axfr
If this is run on a slave named server, /var/named/db.example.com will be updated as well if zone transfers are enabled on both servers.
This is a repository of all of my Linux/Unix writings as well as useful tips and tricks for systems administration, engineering, and programming.
Showing posts with label dig. Show all posts
Showing posts with label dig. Show all posts
Wednesday, September 23, 2009
Wednesday, January 7, 2009
DNS lookups
To find a hostname when you know the IP address:
nmblookup -A <ip_address>
eg. nmblookup -A 192.168.0.148
or
host <ip_address>
eg. host 192.168.0.148
To find an IP address when you know the hostname, try the following ways:
whois www.google.com
dig www.google.com
nslookup www.google.com
nmblookup -A <ip_address>
eg. nmblookup -A 192.168.0.148
or
host <ip_address>
eg. host 192.168.0.148
To find an IP address when you know the hostname, try the following ways:
whois www.google.com
dig www.google.com
nslookup www.google.com
Subscribe to:
Posts (Atom)