They can browse my site using ns1 and ns2 :(

ASTRAPI

Well-Known Member
Jul 8, 2008
321
0
66
Hello

On my site i just notice that they can open my site using my nameservers.

ns1.mydamain.com
and
ns2.mydomain.com

And my site is opening without any problems :(

What i did wrong on cpanel or godaddy?

Thank you
 

ASTRAPI

Well-Known Member
Jul 8, 2008
321
0
66
I am using my domain e.x supersite.com and i use the nameservers ns1.supersite.com and ns2.supersite.com on cpanel.

And then i add on godaddy the ns1 and ns2 and point them to my server ip's.

I always use it like this but i have the problem only on one server.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,205
363
Hello :)

Are you using dedicated IP addresses as your name server IP addresses? Or, do you have accounts hosted on the same IP addresses that are used for your name servers?

Thank you.
 

ASTRAPI

Well-Known Member
Jul 8, 2008
321
0
66
Ns1 is using my server ip (whm) and ns2 is using my forums ip.

But i have another setup exactly the same and the users is not possible to use ns1.mydomain.com on the browser and view my forum....
 

chrismfz

Well-Known Member
Jul 4, 2007
125
1
68
Greece
cPanel Access Level
DataCenter Provider
So you have 2 dedicated IPs, one pointing on your site and the other on your forums.
Both of them are also your NSes ?

Or one IP is shared and it's also the ns1 for example ?
 

ASTRAPI

Well-Known Member
Jul 8, 2008
321
0
66
Example:

domain: mysite.com

main server (whm) ip: 123.456.789.000
forum ip: 000.987.654.321

ns1.mysite.com --> when i add this nameserver it is automaticaly use the ip: 123.456.789.000
ns2.mysite.com --> when i add this nameserver it is automaticaly use the ip: 000.987.654.321

Thank you
 
Last edited:

chrismfz

Well-Known Member
Jul 4, 2007
125
1
68
Greece
cPanel Access Level
DataCenter Provider
So both IPs have virtualhosts and are in use.

One quick 'n dirty hack is to create a cpanel account with the ns name or add them as subdomains/addon domains.
Then point them out somewhere else or nowhere.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,205
363
I am having a difficult time understanding the exact configuration you have in place, compared to the configuration you would prefer to have. Could you open a support ticket for this issue so we can look at the specific examples? You can do so using the following URL:

Submit A Ticket

Please post the ticket number here so we may track the issue.

Thank you.
 

chrismfz

Well-Known Member
Jul 4, 2007
125
1
68
Greece
cPanel Access Level
DataCenter Provider
I am having a difficult time understanding the exact configuration you have in place, compared to the configuration you would prefer to have. Could you open a support ticket for this issue so we can look at the specific examples? You can do so using the following URL:

Submit A Ticket

Please post the ticket number here so we may track the issue.

Thank you.
If there is a dedicated IP for a specific vhost, and the same IP is used as IN A ns1.domain
there isn't anything more to do with that. Correct me if I am wrong.

Using the IP on a specific site, you can browse this site by the IP directly or any other hostname/A record that points to this specific IP.

So I cannot think any other solution except a VirtualHost for ns1/ns2 pointing somewhere else.
Or just get another 2 IPs for NSes or use another NSes.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,205
363
If I assume correctly, you would like to prevent the following domain names from responding to Apache requests:

ns1.mydomain.com
ns2.mydomain.com

If that's correct, you will need to use a dedicated IP address for each name server. You can then disable those IP addresses from responding to Apache requests via:

"WHM>> Service Configuration >> Apache Configuration >> Reserved IPs Editor"

Thank you.