In a small network, choose "DNS settings"> "Linux Enterprise Application"> "Linux server application information". For details, refer to the following section. Disclaimer: The content of this article is taken from other publications, HOWTO, man prompts, newsgroups, and input on the keyboard for a long time, however, this does not mean that this Guide includes all relevant content. More accurately, it is a stepping stone for beginners about intermedia. all examples are taken from our small-sized home network and we are sure it works properly,
Use of this Guide:
The content in square brackets, like [ENTER], refers to pressing the key on the keyboard or clicking the mouse. The content in parentheses, such as (your name here), refers to the characters in italic that need to be filled in the actual data. It is a prerequisite for the content to be entered at the prompt: first, assume that you have installed bind v8.2 and you have selected a valid domain name. Use the IP camouflage program to hide the IP address of your machine. If you use bind V4.x, it will not work normally. You have two options: upgrade (4. x has security issues.) This is beyond the scope of this article. Note that most Linux releases contain three bind packages. The "caching-only" version is not required. What is DNS? DNS is short for Domain Name System (Domain Name resolution), but is actually a protocol. The Bind (Berkeley Internet Name Domain) program to be used runs on both the server and client, DNS can convert the letters and numbers that we can understand into IP addresses that computers can understand, and vice versa. In other words, it can convert www.netscape.com to an IP address like 207.200.75.200.
Why should I set up my own DNS server? In fact, you can only rely on ISP servers. Setting up your own DNS server can accelerate addressing and facilitate management. It is easier to add new computers in the current network environment, sendmail works better, and there is also a good project to do in other spare time.
WHO currently provides the DNS service? Generally, it is your local ISP service provider. The tests below can verify that our assumptions are correct, and this is also the basic step for testing DNS after installation. Access your ISP and enter the following command in the terminal window:
Nslookup [Enter] Default Server: {the DNS name of the ISP is displayed here} Address: {the IP Address of the ISP Server is displayed}
Enter the following content to check whether DNS works:> www.tux.org
This is usually the response: Name: gwyn.tux.org Address: 207.96.122.8 Aliases: http://www.tux.org/> exit [Enter]
Note-you must hide the IP address. Unless you have already registered a website and have a real IP address, you do not need to worry about setting up your own DNS if it is not hidden. On the contrary, the system will confuse you, and may even receive some messy emails sent to the IP address you actually own. after hiding the IP address, you can set up an IP address for your small network as you like, and also hide requests connected through the Internet.
Install DNS: You must install the bind program to Enable DNS to work. I set the domain name to kulai.org as follows. After using the hidden measures, kulai.org will not be listed anywhere, it has not been registered anywhere. After you select your domain name, you can use the whois program to check whether the selected domain name has been legally registered to avoid making things worse, after the connection is established, check as follows:
Whois kulai.org [Enter] is ended with a message similar to the following: My settings in this article are as follows:
Master.kulai.org 192.168.124.10 only installs linux. As the server jc.kulai.org 192.168.124.1, both linux and win98 fserver.kulai.org 192.168.124.11 are installed. Only freebsd phillip.kulai.org 192.168.124.20 is installed with win98.
Set DNS: First, you must use the text editor you are used to create five common text files. You can also copy them from the routine. You only need to change the domain name and IP address, these files must be modified carefully, but they must comply with their special syntax.
/Etc/named. conf/var/named/db. cache/var/named/db.kulai.org (my domain name is set to kulai.org)/var/named/db.124.168.192 (the address is set to 192.168.124.0)/var/named/db.127.0.0 WARNING: after the DNS settings are complete, set/etc/resolv. the conf file must be restarted before it is renamed. After it is renamed, the computer is restarted and then changed back. If DNS is set incorrectly, it cannot be started, and only rescue can be started, renaming can avoid such errors. Check/etc/nsswitch at the same time. cnf settings, "hosts" should be written as follows: "hosts: files dns". in this way, the system will first perform domain name resolution through/etc/hosts, without reporting Invalid DNS. if there is NIS, this line should be written as follows: "hosts: files nis dns".
Start DNS: After the above five files are created, edit the/etc/resolv. conf file, and only list your hosts.
Search kulai.org nameserver 192.168.124.10 Note:/etc/resolv. conf is manditory for bind 8. * then type: tail-f/var/log/messages [Enter] After the named daemon starts, an error message is displayed. open another window or Enter the following in another console: /usr/sbin/ndc start [Enter] (for RedHat release, it is:/etc/rc. d/init. d/named start) include named entries in the/var/log/messages file. The following content ends: Jul 10 15:54:26 master named: named startup succeeded Jul 10 15:54:26 master named [3523]: Ready To answer queries. after connecting to the internet, use the method in the section "who provided DNS Service" above to test DNS. the reported host name should be your own DNS host. Enter the address you frequently browse to check whether the IP address can be output. If it cannot work properly: 1. First check whether the named process is running: ps ax | grep named [Enter]
2. ping another machine by IP address and machine name: ping 192.168.124.10 [Enter] ping master.kulai.org [Enter]
3. telnet to connect to the server. If the access time is long, it means that the configuration may be incorrect.
If everything is normal, you only need to connect your computer on the small network to the Domain Name Server.
Final thoughts concluded: Here we only provide a simple dns solution, and the successful experiences can stimulate your learning interests. You can learn more on the following websites:
The dns howto dns and Bind by O 'Reilly DNS-ZDNet Webopedia Definition and Links Troubeshooters.com: DNS-contains some content related to earlier versions of bind
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service