Is it possible to change default ip?

Richard G

Verified User
Joined
Jul 6, 2008
Messages
14,578
Location
Maastricht
One of the servers has 2 ip addresses.
One is like 178.32.x.x the other one is 94.23.x.x.

Following problem occurs.
But 94 comes before 178 in numbers. So when I want to do a restore of an admin backup or want to create a new user etc. everytime I have to change the 94.23.x.x selection (which is visible default) to the 178.32.x.x (shared - server) default ip, by using the drop down menu.

Is there a way to change all this zo the 178.32.x.x ip is selected by default in the dropdown menu's?
In ip.list in /usr/local/directadmin/data/admin I already put the 178 ip on top, but that did not change anything.
 
Hello,

A quick way to solve the issue is to add custom JavaScript code (or PHP code if possible) into a skin file, with the help of which the desired IP would be selected by default.
 
Oh that's a pity, I hoped there would be an easy way within directadmin itself.
Well.. in that case we have to pay a bit more attention when creating new users, I'm not into code.:)
Thanks!
 
Hi Richard,

If you learned how to do it, please let me know. I would interesting to hear the solution.

Thanks a lot!


Kind regards,
Angelos Pitsos
 
Well.. maybe we can suggest a feature that ip's for dropdown menu's will be read from the way they are sorted in ip.list.:)
 
Actually I was referred to the fact of how to change the default IP of the server, as this is what I am interesting actually, but thanks for the reply anyway.
 
Oh, but that is not what my question was about.
If you want to change the default ip of a server (why should you do that?), you can better write a mail to support. Because the license has to be changed to the new ip. And some changes are needed on the server too, ip must probably be free (no nameservers or users on it yet) etc. but the free ip is just a good guess.
 
Back
Top