Results 1 to 8 of 8
Hi all! I have just know Linux 2 month ago. I want config DNS but i don't know how to. Please help me, thanks very much....
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-09-2007 #1Just Joined!
- Join Date
- Nov 2007
- Posts
- 4
Help me config DNS Step by Step!!
Hi all! I have just know Linux 2 month ago. I want config DNS but i don't know how to. Please help me, thanks very much.
- 11-09-2007 #2
Are you trying to create a DNS server or trying to configure DNS settings for your internet connection?
- 11-09-2007 #3
Linux for 2 months doesn't sound like he is ready for a server yet.
Setting you your machine to use DNS is not hard.
To configure your DNS look at the resolve.conf file that should be with your other conf files. The format is simple
Fist line will be the domains that you want appended to any host you are trying to look up. If you don't want to use any this is ok too. The next lines will be the ip addresses of the dns servers you want to use.
ex:
search domain1.com domain2.com domain3.com etc....
nameserver 10.10.10.1
nameserver 10.10.10.2
nameserver 10.10.10.2
- 11-10-2007 #4Just Joined!
- Join Date
- Nov 2007
- Posts
- 4
@ daark.child: Thanks for your helping, I want config DNS for sever and I do it on VMWARE. The server is virtual and the real PC is client.
@Lazydog : Thanks very much. I did but when I ping my-domain-name.com it give me an error: Unknow host my-domain-name.com.
Please help me!!!
- 11-10-2007 #5
phananhtuan post your resolve.conf file and your named.conf file.
Also are you trying to run named in a chroot env.?
Also post the output from the following:
I would also suggest that yopu buy the following book for setup and troubleshooting:Code:ps -ef | grep named
http://www.oreilly.com/catalog/dns4/
I can get you setup with a dns server, the problem is if you don't have the basics down and there is a problem you are going to be lost in finding and fixing that issue.
- 11-10-2007 #6Just Joined!
- Join Date
- Nov 2007
- Posts
- 4
- 11-11-2007 #7
It would all depend on how many hosts you have.
You could just use your hosts file for resolving your local machines.
In your hosts file you need something like this:
and so on.Code:127.0.0.1 localhost.localdomain localhost xxx.xxx.xxx.xxx host1.domain.com host1 xxx.xxx.xxx.xxx host2.domain.com host2 xxx.xxx.xxx.xxx host3.domain.com host3
In your host.conf you should have
Then in your resolve.conf you should have something like this;Code:order hosts,bind
Then when you goto lookup your own host your machine will first look at the HOSTS file first to resolve and when it doesn't find it it will use your ISP's DNS servers to resolve.Code:nameserver <isp dns server1> nameserver <isp dns server2> nameserver <isp dns server3>
- 11-19-2007 #8Just Joined!
- Join Date
- Nov 2007
- Posts
- 4


Reply With Quote

