How do I nslookup from a specific DNS server?
How do I perform nslookup from a specific DNS server. I dont want it to do something like: nslookup www.dodgydomain.com myip
But rather something like. Nslookup -x 10.15.101 www.com
I also want to force it to use IPv4 and IPv6 (to match a specific router IP). Thanks. Nslookup was an original way for people back in the early days of the internet to look up data on remote servers via telnet or ftp programs on the host machine, so that they could transfer files between them. As it is now, the ndlookup command was created for looking up IP addresses of hosts from DNS records. If you need more information about this command please visit this.
If you are working with the Windows command prompt, try to use ping.exe works directly in the Windows environment.
To run nslookup from a different DNS server you have to setup BIND in your DNS configuration. The only difference from what you already mentioned in your question is the first DNS server specified in your BIND configuration. If your router ip is 192.168.1 the following would work for you:
Nslookup www.com 192.1
You can specify more than one DNS server to use in the call to nslookup: nslookup www.com -x 192.1, 192.2
This will cause nslookup to ask two DNS servers, and then use the highest-quality response it gets (this means, as described here, that it's more likely to get the correct response if the wrong server says "there is no entry for that host").
How to configure DNS server in Linux?
In this article we will see . Introduction. Let's start with the installation of Bind. Prerequisites. Bind9 and named-checkconf. Installed packages : libbind9 libbind9-dev. Check if you have the latest available package list by executing the command below: #aptitude install --simulate nss-config. # aptitude search bind9. # aptitude install bind9-host. Install : sudo apt-get install bind9. Run the bind init script which should be located at /etc/init.d/named and make the configuration file /etc/bind/named.
# chkconfig --list bind. # systemctl start bind9. # /etc/init.d/named start # /etc/init.d/named stop Create a configuration file /etc/bind/named. Here we are creating a default configuration for Bind.conf zone 1.2.3.conf
# cat /etc/resolv.conf nameserver 1.8 nameserver 1.10 Search example.net Configure Bind DNS server. Bind DNS server will read its configuration files from the directory /etc/bind where we can create a file named.conf for our configuration.
In this tutorial we will use two servers; localhost and the router of the network. If you already have a Bind9 server running, you can either update it with these instructions or install a fresh copy of Bind9.
Related Answers
What is the Linux version of nslookup?
Nslookup. nslookup is a command-line tool for querying the n...
How do I get nslookup on Linux?
Nslookup has a slew of different query modes that you can us...
How to install nslookup command in CentOS 7?
I mean to check the hostname, ip address. k1l...