Current time: 12-04-2024, 03:53 AM Hello There, Guest! (LoginRegister)


Post Reply 
DNS issue
Author Message
shaggy Offline
Junior Member
*

Posts: 32
Joined: Jan 2011
Reputation: 0
Post: #1
DNS issue
I have a problem with my Name server. I set on the domain provider ns1.example.com and pointed ns1 to my IP Address, I forwarded port 53 to my server and I know it's not correct to do but also set ns2.example.com to the same IP and directed the domain to thos name servers, localy the site shows via http://www.example.com but when my mate views it remotely it does not show, after doing a dns check on network-tools.com it does not show the IP address of the dns server. what did I do wrong. do I need to add the WAN address into a config file for Bind? atm it only has the networks local address in it (eg 192.168.0.8)

OS: Ubuntu server 10.10
ISP-CP Ver: 1.0.7

everything else works fine, of I use the registers name server it all works without a hassle, but if I use the name server installed with ISP-CP I get that issue. works localy but not remotely (as in no one that is not on my network is able to see my dns server). here is a basic list of the forwarded ports on my router

Server : 192.168.0.8
VIOP Server: 192.168.0.5
Invoice Server(win)(VPN Server): 192.168.0.6
Outbound Services
# Enable Service Name Action LAN Users WAN Servers Log
Default Yes Any ALLOW always Any Any Never

Inbound Services
# |Enable |Service Name |Action |LAN Server IP address |WAN Users |Log
1 | |DNS |ALLOW always |192.168.0.8 |Any |Always
2 | |VPN-PPTP |ALLOW always |192.168.0.6 |Any |Never
3 | |SMTP |ALLOW always |192.168.0.8 |Any |Never
4 | |FTP |ALLOW always |192.168.0.8 |Any |Never
5 | |Server |ALLOW always |192.168.0.8 |Any |Never
Default |Yes |DMZ |ALLOW always |192.168.0.5 |Any |Never
Default |Yes |Any |BLOCK always |Any |Any |Never
02-03-2011 03:59 PM
Find all posts by this user Quote this message in a reply
fluser Offline
Documentation Team
***
Docu Team

Posts: 246
Joined: May 2010
Reputation: 1
Post: #2
RE: DNS issue
Quote:what did I do wrong. do I need to add the WAN address into a config file for Bind? atm it only has the networks local address in it (eg 192.168.0.8)

Think about it and you can give the answer yourself. Wink

Best Regards
Fluser
02-03-2011 08:11 PM
Find all posts by this user Quote this message in a reply
shaggy Offline
Junior Member
*

Posts: 32
Joined: Jan 2011
Reputation: 0
Post: #3
RE: DNS issue
dude I have NEVER playe with DNS, this is a first for me, I don't know what file where was line, or if it needs to be on every domain or just one main file, instead of think about it, just say es and it's x file on x line or these files on these lines. this is ment to be a help forum.
02-04-2011 06:24 AM
Find all posts by this user Quote this message in a reply
fluser Offline
Documentation Team
***
Docu Team

Posts: 246
Joined: May 2010
Reputation: 1
Post: #4
RE: DNS issue
First, change your dns-ip of IspCP

Attantion! This is not officially supported by IspCP and I will not take care of emerging problems.
Code:
sed -i "s/192.168.x.x/xxx.xxx.xxx.xxx/g" /var/cache/bind/xyz.domain.tld.db
sed -i "s/192.168.x.x/xxx.xxx.xxx.xxx/g" /var/cache/bind/xyz.domain.tld.db
/etc/init.d/bind9 reload

Then change the template files for Bind

Code:
cp /etc/ispcp/bind/parts/ /etc/ispcp/bind/parts_bck -R

sed -i "s/{DMN_IP}/xxx.xxx.xxx.xxx/g" /etc/ispcp/bind/parts/*
sed -i "s/{BASE_SERVER_IP}/xxx.xxx.xxx.xxx/g" /etc/ispcp/bind/parts/*
#sed -i "s/{SECONDARY_DNS_IP}/xxx.xxx.xxx.xxx/g" /etc/ispcp/bind/parts/*

If I were you, I would make a backup first.

For rebuilding all bind files, have a look into the wiki. You should find it with the search function. If not, write here a post again Wink

Best Regards
Fluser

Edit:
Quote:dude I have NEVER playe with DNS, this is a first for me, I don't know what file where was line, or if it needs to be on every domain or just one main file, instead of think about it, just say es and it's x file on x line or these files on these lines. this is ment to be a help forum.

Maybe you should think about your behaviour... I only told you that you gave the answer by yourself. And you didn't ask for a solution, you only asked for a "why does it not work".
(This post was last modified: 02-04-2011 06:53 AM by fluser.)
02-04-2011 06:47 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)