![]() |
ISPConfig3 OK - Using DNS server to server local LAN
Follwed the How-To "The Perfect Server - Fedora 13 x86_64 [ISPConfig 3]
" Within ISPConfig3 webadmin: Changed admin password Set IP address of server Set GW IP address Set DNS of server as the server itself - if the server cannot resolve to an IP it will use the public DNS servers listed in the /etc/resolv.conf file. To use this DNS server with a local LAN address of 192.168.1.10 to server DNS requests from LAN clients edit the /etc/named.conf file. Change: listen-on port 53 { 127.0.0.1; } To: listen-on port 53 { 127.0.0.1; 192.168.1.10; } Also change: allow-query { localhost; } To: allow-query { localhost; 192.168.1.0/24; } The "/24" matches the subnet for my network settings of 255.255.255.0 which can be found by running system-config-network it is the 'subnetmask'. |
If I may ask, how can this be done following the Perfect Debian Lenny x64 setup? I don't think it uses BIND.
|
But what if I'm using MyDNS instead of BIND?
Hi Turbanator,
You didn't provide a link to the specific 'How-To' that you used. Is this the one you followed ?: Code:
http://howtoforge.com/perfect-server-debian-lenny-ispconfig3You should have installed software that is required by MyDNS Code:
apt-get install g++ libc6 gcc gawk make texinfo libmysqlclient15-devCode:
cd /tmpCode:
/etc/init.d/mydnsCode:
ls -l /etc/init.d/mydnsCode:
vi /etc/init.d/mydnsAlternatively you could use a different computer and copy and paste the code from the How-To into a plain text file then transfer it to the target server using a USB flash drive. A few moments after the USB drive has been plugged into the server at the command prompt enter "fdisk -l" the last line of the output will show were to mount the USB drive at: EXAMPLE: Code:
Device Boot Start End Blocks Id SystemCode:
mount /dev/sdb1 /mntNext is to change the permissions on the file so that the operating system will allow it to be executed: Code:
chmod +x /etc/init.d/mydnsLet's find out if it's running, if MyDNS is installed you should see it in the process list by running the command: Code:
ps -ACode:
ps -A | moreIf you have "Grep" installed, find out by typing "grep" and pressing return and view results, you should be able to see it in the process list using this: Code:
ps -A | grep -i mydnsFor me, since I am using BIND I do this with: Code:
/etc/init.d/named restartCode:
/etc/init.d/mydns restartSome info I found by Googling says that MyDNS uses the config file /etc/mydns.conf This would be the file you want to change similarly to my previous post. If the config file isn't in "/etc" one way you maybe able to find it is to run this: Code:
updatedbCode:
mydns --dump-config > /etc/mydns.confYou should have an "/etc/resolv.conf" file that was created during the network part of the setup. In this file should be listed the DNS servers of your Internet Service Provider (ISP). Example: nameserver:192.168.x.x nameserver:xxx.xxx.xxx.xxx The first line should be the local IP address of the network adapter that your server uses to access the Internet. This didn't show up in my resolv.conf until after I configured my server within ISPConfig. If your isn't listed here yet I don't think that shoudl matter. The second line is your ISP DNS server, there maybe two listed here. Assuming you have more than one computer on your local LAN and you want your ISPConfig3 server to be the DNS server... The way DNS is going to work is: On your server your Network Interface Card's (NIC) first DNS server shoudl be the IP address of your server. When your server needs an IP address, like say when you are updating software on your system, say using YUM, the request will go to the first DNS server listed in your NIC settings. If your DNS server doesn't have the DNS information then MyDNS will look at the resolve.conf file to see what other DNS servers it can use to resolve the URL to an IP address. The way to test whether or not your DNS server is working use either the "nslookup" or "dig" commands, like so: Code:
dig ohio.org 192.168.1.10If this is successfull you will get a result such as: Code:
[root@prl-ofc-s01 ~]# dig ohio.org 192.168.1.10 |
MrCompTech...wow! great reply! Sorry I didn't provide more clear info in my post to save you so much trouble.
I am following the standard howto for perfect serve debian lenny with isp3 and mydns. My main question was ony about getting the local lan to recogize the domains on that server. my resolv.conf shows only my ISP dns servers. So you're saying I should put the local internal ip of the server as my first dns and the isp dns server as the next 2, correct? OR should I only make the change to mydns.conf as you had in the original post. OR both? |
Quote:
http://apt.bxlug.be/sources/ This package then makes it particularly easy to install MyDNS (no need to create an initscript or a configuration file) on your server, for later use by ISPconfig for example. Quote:
Hope it helps |
Sorry to bring this one up again but I still cannot get local users to resolv the domains on my ispc3 box.
firewall (dhcp showing ispc3 as dns server) -> ispc3 debian x64 perfect -> lan users. Everything works great for people outside the network. Local users cannot get to domains on the ispc3. debian x64 is running mydns not bind. /etc/resolv.conf: nameserver 192.168.1.10 nameserver isp1.isp1.isp1.isp1 nameserver isp2.isp2.isp2.isp2 /etc/mydns.conf already has listen = * vs listen-on port 53 { 127.0.0.1; 192.168.1.10; } which is in the bind example. There is no entry for allow-query Questions: is allow-query valid for mydns and is that the missing link? should I change listen = * to what the bind notation shows? thank you. |
I can't help you with this, or rather, I would have to search myself, which you can probably do better than me as you have the bad-behaving system at hand.
|
Does your router support loopbacks into your local network?
Quote:
|
I need to research if my router suppports loopback (smoothwall). With guessing at what that means, I'll say it's not turned on even if it is....since anybody on the local network cannot access other public side ip's tied to the same netwrok (I know that wasn't expained well).
|
Update:
I opted to split the locals off via switch onto another IP and basic router. Now they are treated as Remote like everyone else and everything works perfectly. Thank you for jogging my brain Falko. |
| All times are GMT +2. The time now is 06:48. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.