IP management messed up after "assigned IP"

harro

Verified User
Joined
Oct 15, 2005
Messages
175
Hello all.

My IP assignment overview is messed up after I added a new reseller.

Wanting to give the reseller one of the servers 'free' IP addresses I selected "assigned IP" from the drop-down menu. This resulted in an error when I tried to apply this setting (presumably because the IP was not owned by the admin making the reseller).

I repeated this step with a shared IP and the reseller was successfully added.

However, when I went into the "IP Management" menu I discovered that the shared IP *.189 was no longer shared and all users were removed from that IP!


83.149.83.188 free admin ns1.example.com 255.255.255.128
83.149.83.189 free <empty> <empty> 255.255.255.128

The secondary nameserver is also not in the list anymore! When I check the DNS administration, the domains (and ns2.) are still listed with the correct ip's. So no problem there.

The users are also in possession of their 'own' IP's (checked the ip.list files).

So two questions arise:

1) how do I fix this, so that IP Management shows the correct number of users for that *.189 ip address as well as the ns2.example.com ?

2) how could this happen?? I would assume that when I get an error message, nothing has been altered in the system yet!

Thanks for any pointers,

Harro
 
Hello,

I recall replying to this via email last night. As a followup, here are the pointers I sent (for anyone who is curious):
  1. To give a reseller an IP (for him to use as he wishes), the IP must not already be assigned to another Reseller.
  2. The "clear NS" button will remove the nameserver entry from the IP file, but does not affect the dns settings in any way (purely cosmetic), possibly clicked?
  3. If the "reseller" became blank, then you can re-assign the IP to the reseller.
  4. I have not heard of all of the status's just going blank, but the info is just stored in files which can be edited:

    /usr/local/directadmin/data/admin/ips/*

    For each IP file, edit the file. If the IP belongs to a reseller, set reseller=resellername.. if nobody owns it, leave "reseller=" blank (then you can then assign it to a reseller through DA). The "status=" should be either 'server','free', 'owned', or 'shared'. Free means nobody is using it yet, and is the default for unused IPs.
  5. If you need to rewrite the /etc/httpd/conf/ips.conf file, use:
    echo "action=rewrite&value=ips" >> /usr/local/directadmin/data/task.queue

    You can run this anyway, just in case (only after all data is correct)
    [/list=1]John
 
You did John, and thank you for that!

I did not get a chance to follow your instructions and restore the IP Management view yet, nor to post your reply here (my bad). Tonight I will fix it and post the result here.

Luckily it is the _view_ that is messed up, not the actual DNS config!
 
Optically all seems to be well again, but when I add new domains they end up on wrong IP numbers. I now have:
83.149.83.186 server
83.149.83.187 shared pakweb
83.149.83.188 shared userweb
83.149.83.189 shared pokweb

When I add a domain as user 'pakweb' it gets assigned ip *.186 instead of *.187

When I try to modify the userdata of 'userweb' I can only select ip *.186, NOT the assigned ip of *.188 (so new domains get the ip *.186)

Very strange.

My /admin/ips/83.149.83.188 file (for example) reads:

gateway=
netmask=255.255.255.128
ns=ns1.mynameserv.com
reseller=userweb
status=shared
value=

Somehow the link between the user/reseller, his IP and the dns assignment of IP's is messed up... The only thing I (consciously) did was move this users 'userweb' from user to reseller with the dauser.pl script :-(
 
Hello,

Check:
/usr/local/directadmin/data/users/pakweb/user.conf

That's the file that stored the IP the user currently owns, and will use for his new domains.

John
 
John, thank you once again. This did indeed fix the problem!

So if IP's get mixed up between users / resellers, check the following config files:

/usr/local/directadmin/data/admin/ips/*
/usr/local/directadmin/data/users/<user>/ip.list
/usr/local/directadmin/data/users/<user>/user.conf


Harro
 
Back
Top