Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've read through forums and many howto's for a few days now, and still can't figure this out.
I want to set up my own DNS server (BIND) and have Apache run Virtual Hosts.
It loads other pages, so bind seems to be working fine as a DNS to other pages, but when I put in "kfaserver2.net", it waits for a while and then gives me an "Unknown Host" error.
Here are the config files:
ns1.kfaserver1.net
---named.conf.local-----------------------------------------------
zone "kfaserver2.net" {
type master;
file "/etc/bind/zones/kfaserver2.net"
};
---zones/kfaserver2.net-----------------------------------------
$TTL 3600
@ IN SOA ns1.kfaserver1.net. root.localhost. (
2 ; serial
10800 ; refresh
3600 ; retry
3600000 ; expire
86400 ) ; minimum
OK
Here's what the file looks like now.
---zones/kfaserver2.net--------------------------------------------
$TTL 3600
@ IN SOA ns1.kfaserver1.net. root.localhost. (
4 ; serial
10800 ; refresh
3600 ; retry
3600000 ; expire
86400 ) ; minimum
IN NS ns1.kfaserver1.net.
IN A 67.116.162.14
-------------------------------------------------------------------
root@xyz:# named-checkzone kfaserver2.net kfaserver2.net
zone kfaserver2.net/IN: loaded serial 4
OK
It still gives the same error message (after trying for quite a time): Unknown Host: kfaserver2.net
I would first check the bind log file to see if that gives any clues, or errors. Are you doing a nslookup when it is giving the unknown host error? If you are make sure you are checking DNS on the server itself.
Now everything works. Can't believe I missed this.
I tried to use wajig to start/stop bind while named was running from the time of installation, so the changes I made never took place because it never restarted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.