Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What is hostname?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jcarpenter2
n00b
n00b


Joined: 15 Mar 2017
Posts: 19

PostPosted: Mon Apr 24, 2017 4:24 pm    Post subject: What is hostname? Reply with quote

/etc/conf.d/hostname
Code:

# Set to the hostname of this machine
hostname="localhost"


hostname
Code:

$ hostname --fqdn
foldingmachine


why is hostname different?
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1717

PostPosted: Mon Apr 24, 2017 6:51 pm    Post subject: Reply with quote

Check your /etc/hosts file, it's quite likely to be the culprit.
The second candidate is your router, they often integrate DHCP with DNS and can even assign a name to your machine according to their own configs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum