ip address in confirmation email

ozzie

Verified User
Joined
Nov 8, 2003
Messages
10
Hi,

I'm having a problem with the ip address in the confirmation email when creating a new user account:

NS1: |ns1|
NS1 IP: |ns1ip|
NS2: |ns2|
NS2 IP: |ns2ip|

Used to work fine, but recently it is returning:

NS1 IP: unknown
&
NS2 IP: unknown

The nameservers themself show OK.

Any thoughts?

Thanks Ozzie
 
Hello,

The IP will return "unknown" after the following has happened:

1) DA goes through whole list of added IP's on the system, and checks to see if the nameserver matches: (/usr/local/directadmin/data/admin/ips/*). If it does, it returns that IP.

2) If it didn't find the nameserver in that list, then it just does a lookup on that nameserver (ns1.domain.com) .. and if it finds an IP, then that IP is returned.

3) After all that, then there isn't anything left to check, so it returns "unknown".

What you could do if you know that it's setup correctly on the server is add:
nameserver 127.0.0.1
to the top of /etc/resolv.conf so that all lookups are done using the local copy of named. For #2, it will go out an asks some other nameserver, which might not have the nameserver's ip yet.

John
 
Back
Top