Alternate DNS query
Comments
-
There are several issues here, lets start with using the forwarder option in the Caching DNS. Normally the DNS server does non-recursive queries to the various servers to look up a name or address. Some organizations regulate the traffic on the DNS ports and want all the requests to pass through a single server, a forwarder. The forwarder will accept recursive requests from DNS servers, resolve the request and return the informatin to the requestor. All we have to do is add the forwarder to our /etc/bind/named.conf.options. Here is an example of an options line in the configuration file:
options {
forwarders { 192.249.249.1; 192.249.249.3; };
};In this case the forwarder's ipaddress would be the DNS server of the Library, most likely the same address passed out by DHCP. That should get the lab DNS server running without altering the /etc/resolv.conf file. We can do the testing on our lab DNS server with the option @localhost in the dig command like:
"dig @localhost www.example.com"To set options in the "interfaces" file options look like:
dns-search example.com
This is an example to set the DNS search list in the /etc/resolv.conf file by adding lines to the "interfaces" file. The "rotate" option will toggle through defined servers for load ballancing a great option but not really necessary for our lab exercise.
I hope this helps, keep me posted.
0 -
Thank you very much for your kind support. Can you please advice in case we don't setting up our local DNS server and want to configure IP setting on the server?
My LAB environment setup: I configured NAT network (I enabled "Port forwarding" for the network when I needed to access from my host computer like ssh) on my Virtual Box which help me to use fixed static address on my lab systems (there was an issue with bridged adapter whenever I switch between home and library networks). Everything works fine whenever I change my virtual machine's ip configuration to appropriate network DNS servers. I decided to update the IP configuration on the virtual machine to use Comcast DNS server as first (since it can be used from most of the locations) and library specific DNS server as a secondary server in /etc/network/interfaces file on Ubuntu. The addresses are updated to /etc/resolv.conf file. But it doesn't work at library because the library's DNS address is listed as the secondary DNS server. As per my understanding, my VM supposed to retry to the secondary DNS server when primary DNS server is not responding. I tried to update /etc/resolv.conf by adding some options as mentioned before. But nothing helps. I googled to understand which option I am missing. But still no luck. I wondered how to make it work and if it can be fixed in resolv.conf file, can it permanently fixed by adding some options in ip configuration file like /etc/network/interfaces? I am really want to know how linux expers configure their client computers' IP address config for DNS to be capable of failover like if one server was down retry with another.
0
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 754 Linux Foundation IT Professional Programs
- 374 Cloud Engineer IT Professional Program
- 170 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 5 DevOps & GitOps IT Professional Program
- 100 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 2 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 5 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 2 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 794 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 89 Storage
- 769 Linux Distributions
- 81 Debian
- 68 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 111 Mobile Computing
- 19 Android
- 77 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 393 Off Topic
- 121 Introductions
- 182 Small Talk
- 29 Study Material
- 976 Programming and Development
- 310 Kernel Development
- 648 Software Development
- 990 Software
- 382 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)
