I am relatively new to opensuse 11.1 and am trying to set up a local domain just for some database development at home. The server is not connected to the ineternet but just to my router at home.
I have tried setting up DNS server using YAST but after entering the settings and trying to save them I get an error saying that /etc/named.conf.include not found.
Having checked the directory I have Named.conf but no named.conf.include.
I have checked the internet as best I can and the only info I can find is on this forum for SUSE 9 in 1994.
I am using Bind 9.5 which came on the DVD I downloaded from the site.
I generally set up BIND by a text editor, but that file named.conf.include is automatically generated when you create a zone and include its name in the list NAMED_CONF_INCLUDE_FILES in /etc/sysconfig/named. This would be done by YaST if you had created a zone. Did you remember to create a zone for your LAN?
Hi … I do create a zone… hopefully I do it correctly.
This is how I have attempted it:
go to network settings select my network adapter and then setup a static IP for the Server… which in my case is 192.168.11.2 and the hostname… myserver.mydomain.local and subnet mask 255.255.255.0.
I the go to hostname/dns and enter the following:
domain name… mydomain.local
dns config is default profile.
for teh name server I enter my router (which is not connected to the internet but is teh gateway) ip 192.168.11.1.
Domain search I enter mydomain.local
for routing I entered my router IP as the default gateway 192.168.11.1
4)I then click on the DNS server icon in yast to begin setting up dns.
for port forwarding I have disabled this… I dont have ineternet so not using it…
for teh zones I have entered the domain name. mydomain.local ( I may be going wrong here??)
on the next screen I check open firewall port, and start now and when booting.
I then click finnish and when it tries to configure these settings I get the error saying that file does not exist…
Sorry, I’m not much help as I don’t use YaST for configuring zones. However, it should create a file called <yourzone>.conf in /etc/named.d/, which contain the zone declaration which gets included by /etc/named.conf. Also it should add this filename to NAMED_CONF_INCLUDE_FILES in /etc/sysconfig/named. Finally, there should be a zone file in /var/lib/named/master/zonename which contain the SOA, TTL, etc and records.
> I then click finnish and when it tries to configure these settings I
> get the error saying that file does not exist…
>
> Have I done something wrong along the way??
How about manually creating the required file? That way it should no
complaint :-?
FYI, I’m on opensuse 10.3 and mine is located on /etc/named.conf.include
with “root/named” ownership and permissions set to 644. It’s an empty file.
I cannot get the DNS to work. I have setup the zones… and reverse translation. I can now ping the host from a different computer and from the server itself using both IP and host name… but the DNS is still not working.
search percysdomain.local
nameserver 192.168.11.2
**
I have been through all the relevant files and compared them to online material as well as the Suse11 Manual and I cant find teh problem… any help would be great thanks.**
Don’t use .local, it’s reserved for MDNS and DNS gets interfered with.
As a workaround you can put a line with:
mdns off
in /etc/host.conf. Unfortunately the SUSE man page for host.conf seems to be badly out of date, but a Net search will find the documentation of this option.
> THANKS THAT SEEMED TO HAVE WORKED… HOWEVER…
>
> I CANNOT GET THE DNS TO WORK. I HAVE SETUP THE ZONES… AND REVERSE
> TRANSLATION. I CAN NOW PING THE HOST FROM A DIFFERENT COMPUTER AND FROM
> THE SERVER ITSELF USING BOTH IP AND HOST NAME… BUT THE DNS IS STILL
> NOT WORKING.
Ops, CapsLock on?
What makes you think dns is not working? :-?
Can you please post your zone configuration file so we can take a look?
Oops sorry about the Caps lock… working off a laptop with a mind of its own
Thanks ken_yap for that. I found some documentation and have added the line to host.conf file but it still doesnt work.
Hi Camaleon. The DNS servermy be running but I am unable to access the domain from my local network. I have tried to ping percysdomain.local and there is no reply. I have done the same on the server and no reply. Although pinging the host works. So the problem must be the domain.
Here are the zone files as requested.
percysdomain.localX file.
*$TTL 2d
@ IN SOA percy-desktop.percysdomain.local. root.percy-desktop.percysdomain.local. (
2009062300 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum
percysdomain.local. IN NS percy-desktop.percysdomain.local.
percy-desktop IN A 192.168.11.2
*and then the reverse zone file 11.168.192.in-addr.arpaX
*$TTL 2D
@ IN SOA percy-desktop.percysdomain.local. root.percy-desktop.percysdomain.local. (
2009062300 ; serial
3H ; refresh
1H ; retry
1W ; expiry
1D ) ; minimum
11.168.192.in-addr.arpa. IN NS percy-desktop.11.168.192.in-addr.arpa.
1 IN PTR percy-desktop.percysdomain.local.