IP address not filled in in httpd.conf and /var/named/domain.com.db

jam

New member
Joined
Dec 24, 2018
Messages
3
Hi there,

I have been working on this problem for half a day, and I cannot figure out what is is going wrong.

This is a new server, running CentOS 7 with DirectAdmin 1.55.0. I have another older server running DirectAdmin for over 4 years now, always working perfect and when there was a problem, I could fix it, but this time... this server... I don't know.

The problem is, when I log into DirectAdmin as admin, I go to User Level -> Domain Administration -> Add Another Domain, I fill in the domain name I want to use, I get Domain Created.
But both services named and httpd won't restart and give an error.

The files /usr/local/directadmin/data/users/admin/httpd.conf and /var/named/domain.com.db do not fill in the IP address, the |IP| is blank.

For example, if I try to add domain.com, httpd.conf has a line like:

Code:
<VirtualHost :80 >

Instead of:

Code:
<VirtualHost 82.82.12.1:80 >

(IP address is fake)

And domain.com.db has lines like:

Code:
ftp     14400   IN      A
mail    14400   IN      A

Instead of:

Code:
ftp     14400   IN      A    82.82.12.1
mail    14400   IN      A    82.82.12.1

At Admin Level -> IP Management, there is the right IP address, with Status server.

I need to add a client domain to this server, and I just cannot get it to work. I tried a lot of things, but I am lost.

Can someone point me in the right direction?

Thanks!

JAM
 
Hello Jam,

Do you see IP in Directadmin at admin and reseller level on IP management pages?

When you add an user do you see an IP in a drop-down list?
 
Hey Alex,

At Admin Level and Reseller Level I see the same IP at IP Management.

Also I can add a Reseller User, select the same IP and fill in a domain, then the IP variable does get filled in for that domain and named and httpd start perfectly.

If I then add another domain as Admin by going to User Level -> Domain Administration, the IP variable does not get filled in and named and httpd don't start.

So as Reseller the IP variable works, but not as Admin.

Thanks.

JAM
 
Alex,

After looking at some old forum posts, if figured it out.

When going to Admin Level -> List Administrators -> admin -> admin's User Data -> Modify User admin, the 'Set IP To' was empty and the 'Add additional IP' was set to the right IP address. After filling in the right IP address at 'Set IP To', everything works fine!

No idea why the default setting was 'wrong', but this fixed my problem.

Thanks again Alex!

JAM
 
Back
Top