"Invalid Hostname" when trying to add

I have recently re-installed my IPFire system due to tinkering and borking things. I restored from an old backup as I was a plonker and had not made a backup for some time.

All seems to be working fine I’ve just had to change some settings that where not in my old backup which has lead me to a problem with the “Edit Hosts” page.

No matter what I try to add it displays “invalid hostname”. This is a host that was added pre re-install. I have also just tried entering random names but no matter what it won’t add allow me to add anything.

IPFire 194

Thanks in advance for any suggestions

Looking at the code the only reason for getting this message is if the hostname contains any characters except digits, upper or lower case letters or a dash. All other characters such as spaces, underscores, ampersands etc are not allowed.

I have just confirmed with my CU194 system and it accepts any hostname I give it if it follows the above requirements.

Can you provide an example for a hostname used when that message gets shown.

Ok so I’ve been an absolute idiot!

Thank you for your reply. For some reason I was trying to put the hostname in the IP address section and the IP in the hostname section!

Need to get my eyes checked. :blush:

Can’t believe I was being so dumb… then again.

Thanks again

Ah well. Never mind. These things happen to us all at some time.

Glad you got it solved.

1 Like