Updating bind serial numbers automatically redhat Life webcam with honygirls
Now attempt to ping a common public host that does not block ICMP (Internet Control Message Protocol) packets; feel free to use my firewall, which is a Raspberry Pi.You should get an "unknown host" or "Name or service not known" error because you currently have no working DNS service or resolver defined in the file.I will use the private IP address of my ASUS for this project but you should use the IP address of the host that you are using. In its default state, there should only be two lines in the hosts file, the first two lines seen in Listing 1, below.127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 # Lab hosts 192.168.25.1 server 192.1 host1 192.1 host2 192.1 host3 192.1 host4 Although you can add hostnames and their respective IP Addresses as shown in Listing 1, this is not an optimal solution to name services, especially when traveling.It simply caches the results of all name resolver requests from the network that it serves to speed up responses to future requests for the same remote host.Note: The file is very particular about syntax and especially punctuation.I use this setup on my much more powerful Think Pad because the name servers provided by DHCP (Dynamic Host Configuration Protocol) when I connect to non-home networks using either wired or wireless connections can sometimes be unreliable.
Most of you will not have any entries other than the two default lines.This little lab project will show you how to install and configure BIND on your computer as a caching name server, test it, then set it up as a primary name server with a zone file that you can use as a name resolver for your network or just for testing.Setting up a name server on any GNU/Linux computer you have available is technically possible because it will not interfere with other hosts on the network or their operation.For example, if your lab host IP Address is 192.168.0.203, as is my epc, add the following line to the top of the name server list in /etc/resolv.conf: You could use the IP Address of your localhost, 127.0.0.1 instead of the external IP address.You should also comment out any lines pointing to other hosts as name servers. These changes will take effect immediately and no reboot or service restart is required.