HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   ISPConfig Local DNS server settings (Ubuntu 12.04 LTS) (http://www.howtoforge.com/forums/showthread.php?t=57724)

neoszion 24th June 2012 18:54

ISPConfig Local DNS server settings (Ubuntu 12.04 LTS)
 
Hi there,

I have just completed the install of ISP config on my local server and everything is running very smooth. I would like to create websites locally without having to edit my pc host file every time I set up a local site on my server. I also want all of the pc's on my network to go via this server.

How is this possible I am very new to DNS so some light reading would be great :) thanks in advance for you response.

neoszion 25th June 2012 16:10

*Bump*

Sorry wondered if this is possible?

falko 26th June 2012 13:00

You must create a local DNS server and then use it in your router settings so that the router tells the client PCs (via DHCP) to use that nameserver.

You can use the DNS module in ISPConfig to create DNS zones.

neoszion 26th June 2012 14:13

thanks for your reply.

How would I check that the setting I have put into ISP config are running correctly?

neoszion 26th June 2012 22:18

2 Attachment(s)
OK so I set up a Zone and when I do a nslookup of the domain on the the server I get the following error:

eden@eden:/etc/bind$ nslookup eden.local
;; Got SERVFAIL reply from 127.0.0.1, trying next server
;; Got SERVFAIL reply from 127.0.0.1, trying next server
Server: ::1
Address: ::1#53

** server can't find eden.local: SERVFAIL

When I do an NSLookup of the IP I get the following:

eden@eden:/etc/bind$ nslookup 192.168.0.3
Server: 127.0.0.1
Address: 127.0.0.1#53

** server can't find 3.0.168.192.in-addr.arpa.: NXDOMAIN

################################################## #

Not sure where I am going wrong here? Screenshots of my zone page attached.

TiTex 27th June 2012 11:07

you should have a file pri.eden.local in your /etc/bind/ folder , check if it's there

neoszion 27th June 2012 18:48

Thanks for your reply.

Yes it is there it contains the following:

#######################################

$TTL 3600
@ IN SOA ns1.eden.local. info@eden.local. (
2012062702 ; serial, todays date + todays serial #
7200 ; refresh, seconds
540 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;

eden.local. 3600 A 192.168.0.3
eden.local. 3600 MX 10 mail.eden.local.
eden.local. 3600 NS ns1.eden.local.
eden.local. 3600 NS ns2.eden.local.
mail 3600 A 192.168.0.3
www 3600 A 192.168.0.3

TiTex 27th June 2012 20:54

can you post the contents of /etc/resolv.conf ?
also is your bind/named service started ?

neoszion 27th June 2012 20:59

the etc/resolv.conf
Quote:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.0.3
Yes the bind name service is running, but to be sure I just done a "sudo service bind9 start"...

TiTex 28th June 2012 07:59

the first entry in your resolv.conf should be
Code:

nameserver 127.0.0.1
check your /etc/network/interfaces and make sure there is an entry like
Code:

dns-nameservers 127.0.0.1
do a network restart
Code:

/etc/init.d/networking restart
it should work now


All times are GMT +2. The time now is 17:24.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.