Ask Your Question

how can resolv my own DNS server with ISP DNS server?

asked 2014-09-19 13:19:08 -0500

how can i resolv my DNS server with my ISP DNS server, like my ip-, gateway-, DNS-, now, how can share my internet with my DNS server through dual NIC card? anyone can help me, i am not understanding DNS resloving process.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-09-19 14:48:04 -0500

cobra gravatar image

updated 2014-09-19 14:51:10 -0500

You can set up your own DNS server and have it do forwarding to your ISP's DNS server. It means you set up a DNS service on your own computer, then point your network settings DNS address to your localhost IP.

If you have other computers running on your network, they can share that DNS too if you open the firewall on the DNS server to allow connections (port 53, I believe) and change the other computer's DNS IP Address to be that of your DNS server.

If you take the decision to set up your own BIND DNS server, then it's not a task that can be described quickly on here. Fortunately there is plenty of help out there. I did a quick search around, and found this article for Ubuntu:

which talks through the issues on setting it up. BIND is a pretty standard package, so virtually all of that applies. You need to remember, though, that the base directories are slightly different in Fedora. There are two packages you need, the basic BIND package, and an additional package that allows the DNS server (which is a vulnerable system) to run in a chroot jail.

The two packages you need are:


Install these with yum, and then follow the instructions in the how-to I linked above. The directories where your files are stored in Fedora with chroot are:


The important directories/files then become:

The BIND configuration file: /var/named/chroot/etc/bind.conf

The zone file storage directory: /var/named/chroot/var/named

File references to your zone files inside bind.conf relate directly to that var/named directory.

Also note that Fedora uses systemctl to control running services, you you'll need to use systemctl enable ... rather than chkconfig ... on to control auto startup state of the services.

One last thing to be aware of is that I run my own inernet-facing BIND servers - but I don't run them on Fedora. As this is a 'mission-critical' service I run it on a CentOS (RedHat Enterprise compatible OS) server, as that has a much longer support cycle than Fedora.

Good luck with your configuration.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-09-19 13:19:08 -0500

Seen: 206 times

Last updated: Sep 19 '14