Skip to main content

Problems with hostname.

Comments

22 comments

  • cPanelMichael
    I don't understand. cPanel is changing hostname.domain.com to hostname.domain.com? There's no difference! I've gone to the links, I've verified the hostname was set correctly...not sure what's going on here but I'd like to fix the issue. Thanks!

    Hello, Please post the output from the following command:
    grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf
    Thank you.
    0
  • Spork Schivago
    Hello, Please post the output from the following command:
    grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf
    Thank you.

    Thank you!
    root@franklin:[/home/sporkschivago]# grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf /etc/redhat-release:CentOS release 6.8 (Final) /usr/local/cpanel/version:11.56.0.22 /var/cpanel/envtype:virtuozzo CPANEL=release
    0
  • cPanelMichael
    /var/cpanel/envtype:virtuozzo

    Do you notice the issue after the system reboots? If so, ensure you are using the same hostname in your VPS management interface from your VPS hosting provider. Thank you.
    0
  • Spork Schivago
    Do you notice the issue after the system reboots? If so, ensure you are using the same hostname in your VPS management interface from your VPS hosting provider. Thank you.

    Let me reboot the system and see. From what I can tell, there's something I do, but I don't think it's rebooting, that causes it. When I start playing with settings in WHM. Maybe it's something I'm doing. I want to say the last time was when I was messing with sub-domains, I got the e-mail. I'll try doing a restart right now of the server and see if I get it. The VPS management interface (the GoDaddy stuff, right?) that has the hostname setup correctly, Franklin. I mean, in GoDaddy, it's a capital F, like I feel it should be. Would that matter? I didn't think of that until now. With Linux, capitalization means a lot. Also, with the web, it seems capitalization means a lot. I wanted my domain name to actually be JetBBS not jetbbs. Even if I try to refer to it as JetBBS, in some places, that breaks things. I gotta use the all lower case one. Maybe I need to change the hostname on GoDaddy to all lower case?
    0
  • Spork Schivago
    I might have found the problem. There was a new update to cPanel / WHM and I went to update. Combing through the logs, I notice this:
    [2016-06-08 18:31:18 -0400] Processing: Checking for main IP changes [2016-06-08 18:31:18 -0400] - Processing command `/usr/local/cpanel/scripts/mainipcheck` [2016-06-08 18:31:18 -0400] Processing: Validating server hostname [2016-06-08 18:31:18 -0400] - Processing command `/usr/local/cpanel/scripts/check_valid_server_hostname --notify` [2016-06-08 18:31:18 -0400] [2363] ERROR: WHM has detected a manual hostname change. [2016-06-08 18:31:18 -0400] [2363] [2016-06-08 18:31:18 -0400] [2363] The system will attempt to synchronize the current hostname "franklin.domain.com" to the system configuration. In the future, update your hostname in WHM"s (http://franklin.domain.com:2087/scripts2/changehostname) interface (Home " Networking Setup " Change Hostname). [2016-06-08 18:33:43 -0400] [2363] Changing hostname to franklin.domain.com...Success! [2016-06-08 18:33:43 -0400] [2363] [2016-06-08 18:33:43 -0400] [2363] Hostname set to: franklin.domain.com [2016-06-08 18:33:43 -0400] [2363] Warnings were seen during rename: [2016-06-08 18:33:43 -0400] [2363] [2016-06-08 18:33:43 -0400] [2363] The hostname was already set to franklin.domain.com, syncing configuration only. [2016-06-08 18:33:43 -0400] [2363] [2016-06-08 18:33:43 -0400] [2363] Output during rename: [2016-06-08 18:33:43 -0400] [2363]
    It seems somewheres my domain name is set to the capitalized domain. Originally when I tried registering the name, I tried capitalization but certain things, like Let's Encrypt, didn't like it, so I used lower case. Where would I change something like that? Ultimately, I'd like the capitalized version to be the correct version, but if it's going to cause problems, I'll use completely lower case. But where would I change that? Thanks!
    0
  • Spork Schivago
    I wanted to add, I found this in /etc/hosts: 127.0.0.1 localhost franklin.domain.com franklin Could that be where it's picking up domain.com ? I tried looking on GoDaddy's site but couldn't find anything. Everything's either all capital (DOMAIN.COM) or all lowercase (domain.com). I now just edited /etc/hosts and changed it to lowercase but there was a message in that file, a comment. Here's the full file
    127.0.0.1 localhost.localdomain localhost ::1 localhost localhost6 localhost6.localdomain6 172.19.xxx.xxx domain 104.238.117.105 franklin.domain.com franklin domain.secureserver.net domain # Auto-generated hostname. Please do not remove this comment. 127.0.0.1 localhost franklin.domain.com franklin
    That's after I modified it. I wonder if I can remove that dang domain.secureserver.net stuff. Everything was set there by default when I started. And somehow, GoDaddy is tied into secureserver.net but I don't think that domain.secureserver.net is a real server. Maybe it's just left over? I'd like to get rid of that junk if I could.
    0
  • cPanelMichael
    Hello, You should be able to simply update the hostname to use all lowercase characters via: "WHM >> Change Hostname" This will ensure the hostname change is synced throughout all of the configuration files. The one exception is the VPS configuration itself, as you may need to update the hostname with your VPS provider to ensure it also uses all lowercase characters. Let us know if this is not working. Thank you.
    0
  • Spork Schivago
    Hello, You should be able to simply update the hostname to use all lowercase characters via: "WHM >> Change Hostname" This will ensure the hostname change is synced throughout all of the configuration files. The one exception is the VPS configuration itself, as you may need to update the hostname with your VPS provider to ensure it also uses all lowercase characters. Let us know if this is not working. Thank you.

    Thanks, I had used the WHM >> Change Hostname many times. Every time I got the error message, in fact. That didn't seem to fix it. I had also tried changing the VPS configuration to all lower case. I believe this was in fact the problem. I could see where it was listing DOMAIN instead of domain but I couldn't find anyplace to change it. Once I manually edited /etc/hosts and changed it to all lower case, I rebooted the server and haven't ran across the message since. I think that was the problem. Any ideas if I can remove that secureserver.net stuff from the /etc/hosts file or don't you know? I know in the DNS zone files or whatever they're called, I had to remove the secureserver.net stuff and replace it with my real domain name. I don't think it's supposed to be in the /etc/hosts file but I'm not 100% certain. What do you think? I know in the real world, domain.secureserver.net doesn't seem to exist. I can't ping it, I can't go there, I can't do a reverse DNS lookup on it or anything like that. I can ping it on my server, but that's only because it's in the hosts file I believe. What do you think? Safe to remove? Thanks for all the help!
    0
  • cPanelMichael
    Any ideas if I can remove that secureserver.net stuff from the /etc/hosts file or don't you know? I know in the DNS zone files or whatever they're called, I had to remove the secureserver.net stuff and replace it with my real domain name. I don't think it's supposed to be in the /etc/hosts file but I'm not 100% certain. What do you think? I know in the real world, jetbbs.secureserver.net doesn't seem to exist. I can't ping it, I can't go there, I can't do a reverse DNS lookup on it or anything like that. I can ping it on my server, but that's only because it's in the hosts file I believe. What do you think? Safe to remove? Thanks for all the help!

    Hello, You can remove the entry if you have no need to resolve that domain name to the specified IP address. It's likely listed because it was the original server hostname. Thank you.
    0
  • Spork Schivago
    Hello, You can remove the entry if you have no need to resolve that domain name to the specified IP address. It's likely listed because it was the original server hostname. Thank you.

    Thanks cPanelMichael! I believe you're right. I ended up removing it and nothing seemed to break, so that's good. There were a few secureserver.net references left over that I should had removed but didn't know that I was supposed to. I know my hosting providers require me to go through some dedrely.secureserver.net to make sure I don't do bad stuff with e-mail and they say if I try to by-pass that, I can get in all kinds of trouble. I was afraid maybe this had something to do with that, but I'm almost positive now it doesn't. Thanks again for the help! I'm glad I can always count on cPanel professionals for help when I need it!
    0
  • Spork Schivago
    Dang, I just ran /scripts/upcp --force and got the message again. I got two of them. This is what it says:
    [franklin.domain.com] The system detected an invalid hostname configuration. The system detected an invalid hostname configuration on: franklin.domain.com The main IP address of your cPanel & WHM server is "104.238.xxx.xxx". The hostname does not resolve to this IP address. This misconfiguration can cause some services on your server to fail to restart properly. The cause of your misconfiguration is: WHM has detected a manual hostname change. To fix this problem, we recommend that you perform the following action: The system will attempt to synchronize the current hostname "franklin.DOMAIN.com" to the system configuration. In the future, update your hostname in WHM"s (http://franklin.domain.com:2087/scripts2/changehostname) interface (Home " Networking Setup " Change Hostname). This notice is the result of a request from "server_hostname_validator". The system generated this notice on Monday, July 11, 2016 at 7:13:39 PM UTC. "Invalid Hostname For Main IP Address" notifications are currently configured to have an importance of "High". You can change the importance or disable this type of notification in WHM"s Contact Manager at:https://franklin.domain.com:2087/scripts2/editcontact?event=Check::ValidServerHostname Do not reply to this automated message.

    [franklin.domain.com] Hostname change status The server recently changed hostname from "franklin.domain.com" to "franklin.domain.com". As part of this change, a background task was launched to update the hostname in individual users' Horde databases. The outcome of this task was: Success. No action is required on your part. Additional detail: [2016-07-11 15:16:20 -0400] info [/usr/local/cpanel/scripts/dav_change_hostname] The system will now change the calendar and address book hostnames from "franklin.domain.com" to "franklin.domain.com". [2016-07-11 15:16:20 -0400] info [/usr/local/cpanel/scripts/dav_change_hostname] The system successfully updated the hostnames for all 1 users. The system generated this notice on Monday, July 11, 2016 at 7:16:20 PM UTC. "Hostname Change Notifications" notifications are currently configured to have an importance of "Low". You can change the importance or disable this type of notification in WHM"s Contact Manager at:https://franklin.domain.com:2087/scripts2/editcontact?event=DAV::ChangeHostname Do not reply to this automated message.
    It looks like somehow my manual changes to /etc/hosts got changed again. Here's what it shows now:
    #/etc/hosts file 127.0.0.1 localhost.localdomain localhost ::1 localhost localhost6 localhost6.localdomain6 172.19.120.223 domain 104.238.117.105 franklin.domain.com franklin domain # Auto-generated hostname. Please do not remove this comment. 127.0.0.1 localhost franklin.DOMAIN.com franklin
    I just wanted to confirm, this is definitely something with GoDaddy's stuff, right? Somewheres in the user interface, my domain is listed as DOMAIN.com, not domain.com, right? I just gotta figure out where and how to change it to lowercase, right?
    0
  • Spork Schivago
    I'm making progress. In GoDaddy, I had to do some weird stuff and I noticed there was a name for the server, but the hostname value was empty. So, what I did was set the hostname to franklin.domain.com and it took a while to update. It looked like it was broke. Then I got an e-mail from lfd saying there was a root login from a domain that looked like one of the GoDaddy support people. I cat /etc/hosts and now the very last two lines, the auto-generated ones, they're missing. So, I think I'm getting somewheres. Hopefully they become properly populated soon. I'll keep ya posted!
    0
  • Spork Schivago
    I think I'm good. The GoDaddy interface shows the server update is complete. The auto-generated stuff is just completely gone from /etc/hosts. I don't see how that could cause problems. I guess maybe it could. If a local program is trying to connect to franklin.domain.com, instead of connecting to 127.0.0.1, the local loopback, it'll connect to 104.238.xxx.xxx, right? Would that mean if someone had a sniffer running somewheres that wasn't on my server, they'd be able to see the traffic? And before, because the /etc/hosts had franklin.domain.com pointing to the local loopback, any local program would just connect to 127.0.0.1 and not go over the internet? Thanks!
    0
  • cPanelMichael
    Hello, The system uses the /etc/hosts file to determine the IP address associated with a hostname before consulting with the name servers. This only applies to local connections. Remote servers do not consult with your system's /etc/hosts file. There's a full document on this at: 17.9. Managing Hosts Thank you.
    0
  • ItsMattSon
    Hi Spork, As a GoDaddy VPS customer myself, in the server admin panel you would see "Settings" and inside there is your hostname with the option to Change. I didn't want to bump this old thread if I could help it but I couldn't start a Conversation with you either. I think perhaps you don't allow it, or maybe that's a restriction of the forum. Anyway, I noticed that works for me, and if it's not set in the GoDaddy server admin panel and only in WHM, restarting VPS sets it back to the GoDaddy original hostname they assign you, which is something like ip-XXX-XX-XXX-XX.ip.secureserver.net I did notice in the past though that an rDNS lookup on my server shows that secureserver.net hostname though, rather than the one I set which I think makes my mail more "spammy" unfortunately. I still haven't managed to figure out how to sort that out, and according to your GoDaddy thread here, neither did you?
    0
  • Spork Schivago
    ItsMattSon, For me, /etc/hosts had the domain name but with capitalization and that's what was throwing off cPanel / WHM. What really was throwing me off was the message saying
    The server recently changed hostname from "hostname.domain.com" to "hostname.domain.com".
    There, both hostname.domain.com's where lowercase. Originally, when I registered the domain with GoDaddy, I wanted capitalization. I still do, but I guess that's not allowed for some reason. I'm thinking eventually, I might be able to get it so when people to my domain, I can some how rewrite the URL so it has the proper capitalization, but I haven't had time to look into that. As for the reverse DNS with GoDaddy, they do not and will not support it. This is one of the reasons I moved my VPS from GoDaddy to Linode. Linode gives you sooooo much more control. I can even recompile or use a custom kernel if I want with Linode. You can only do that if you've got a dedicated server with GoDaddy. I kept my domain name registered with GoDaddy though. Another big reason I moved (the main one) was the fact that GoDaddy no longer provides IPv6 addresses, which just blows my mind. They said not enough people were using it. I'm thinking what?! The whole purpose of IPv6 was because we were running out of IPv4 addresses and sooner or later, everyone's going to be using IPv6! I think a good portion of the web already uses IPv6 addresses, and some sites only use IPv6 addresses. I'm not sure why you couldn't start a conversation with me and I would really like to know. Maybe a moderator could look into this? To my knowledge, I don't prevent anyone from starting a conversation with me. For questions that involve a problem, I generally prefer people to ask in the forums, so everyone can benefit from the knowledge, but for stuff like hey, what hosting provider do you use and stuff like that, I don't mind the conversations at all.
    0
  • Infopro
    Maybe a moderator could look into this?

    It seems you guys both had the option for starting messages with other Members unchecked. I've modified your profiles for you, see if that works.
    0
  • ItsMattSon
    As for the reverse DNS with GoDaddy, they do not and will not support it. This is one of the reasons I moved my VPS from GoDaddy to Linode. Linode gives you sooooo much more control. I can even recompile or use a custom kernel if I want with Linode. You can only do that if you've got a dedicated server with GoDaddy.

    Ah yep, much the same things that upset me about GoDaddy also. Symlink Race protection at the kernel level, impossible on their VPS's which sucks. They let you rename your hostname from ip-XXX-XXX-XX-XX.ip.secureserver.net to your own FQDN but then a reverse lookup points to the secureserver name instead of the custom name you put in.. I really don't know why that wouldn't change to the new hostname I set in their server admin panel but, alas, nothing I can do about it I guess. Thanks for getting back to me.
    It seems you guys both had the option for starting messages with other Members unchecked. I've modified your profiles for you, see if that works.

    Thanks Infopro, that worked a charm. I've messaged Spork directly now :)
    0
  • Spork Schivago
    It seems you guys both had the option for starting messages with other Members unchecked. I've modified your profiles for you, see if that works.

    Thanks Infopro. I wonder how that happened. I've had private messages with another user once. I don't remember changing it, but thanks for fixing it for us!!!!
    0
  • Spork Schivago
    Ah yep, much the same things that upset me about GoDaddy also. Symlink Race protection at the kernel level, impossible on their VPS's which sucks. They let you rename your hostname from ip-XXX-XXX-XX-XX.ip.secureserver.net to your own FQDN but then a reverse lookup points to the secureserver name instead of the custom name you put in.. I really don't know why that wouldn't change to the new hostname I set in their server admin panel but, alas, nothing I can do about it I guess. Thanks for getting back to me...

    I believe I know why they prevent users from setting up reverse DNS. I think it has something to do with their mail relay. They try to prevent people from sending spam, which is good, but I feel they go about it the wrong way. All mail goes through their relay and there's a limit to how many e-mails you can send a day. It all goes through the secureserver.net stuff. If you ever move from GoDaddy to some place Linode, if you use cPanel / WHM to backup your installation configuration files, when you restore it on the new server, your mail won't work because of this. You have to go into Exim's configuration and remove the GoDaddy stuff. If you do this on the actual GoDaddy servers, they say you'll get in lots of trouble for trying to bypass their anti-spam stuff.
    0
  • ItsMattSon
    Hi Spork, Agree 100%. Those are my findings also. 5000 relays a day permitted from my VPS via secureserver.net mail relay and GoDaddy server support confirmed with me yesterday that changing the PTR record is not possible by myself and not possible by them because they are unwilling. They said that was spam-related and the only way I'd be able to was to own my own IP, which would mean running my own web server out of my home haha. They mentioned also that the rDNS lookup shouldn't affect mail *too* much and to focus on DKIM, SPF and DMARC records to improve the mail score. However, on that note, the secureserver mail relay is on 4 spam blacklists of 40, haha. Must be a constant battle for GoDaddy trying to stay off of them!
    0
  • Spork Schivago
    A little off topic here, but I wonder how the mail servers work. I have one installed on my server. When I log into webmail and I go to send an e-mail to someone@gmail.com, for example, does my mail server connect directly to google's mail servers, or does it connect to a bunch of mail servers in between and kinda gets forwarded along the way until it reaches gmail? When I run traceroute on gmail.com, I see a bunch of hops that we have to go through before we reach gmail.com. If the mail has to go through that as well, maybe GoDaddy can check just the mail before it leaves without using a relay and see if it's likely spam, using something like spamassassin. If a person sends enough that register as spam, maybe temporarily shut down their ability to send mail until it's further investigated. I think in the end though, they're never going to change it. If you really want fully control of your VPS, the only true way to gain it is to switch hosting providers.
    0

Please sign in to leave a comment.