getting server to utilise hostnames on network

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I have a Server 16.04, minimal install, running perfectly with one exception.
When I change it to use a static ip it loses the ability to connect with other machines (both real and Vms) via their hostnames.
I'm pretty sure it is the server because the other machines can ping each other via hostnames but the Ubuntu cannot, I have tried this install on both a real machine and a virtual machine both same, it works perfectly on dhcp but as soon as I assign a static ip no hostname comms.
The static configuration follows most guides out there and everything else works when in static mode, I can ping by ip both internal and external and access shares etc so I am stumped after a week of chasing this.
Solutions tried, most out there, flushing caches frequently and utilising alternate measures such as winbind+nsswitch, didn't work.
the reason this is important is I am trying to use guacamole to control my nas and several machines running a mix of windows and Linux and would have to set the config to use static addresses and only use static on the network to enable this.



ps I should mention that when I try hostnames (ie ping win8) they are resolved to an external site that handles 404 errors (presumably for my isp)
again this does not happen when I ping from a windows machine with the same dns server entries.



# The primary network interface
auto enp0s3
iface enp0s3 inet static

# static
address 192.168.1.98
netmask 255.255.255.0
#network 192.168.1.0
#broadcast 192.168.1.255
gateway 192.168.1.254
dns-nameservers 192.168.1.254









share|improve this question























  • It reads to me like you've not setup DNS (nameservers; only ip address so it works when dhcp provides..) so check out askubuntu.com/questions/346838/…
    – guiverc
    Apr 18 at 8:45











  • the dns entry is pointing to the router, this handles the output from other machines ok
    – MDBarber
    Apr 18 at 8:47










  • Please edit your question and specify what exactly have you done to set the static IP address.
    – Melebius
    Apr 18 at 8:47














up vote
0
down vote

favorite












I have a Server 16.04, minimal install, running perfectly with one exception.
When I change it to use a static ip it loses the ability to connect with other machines (both real and Vms) via their hostnames.
I'm pretty sure it is the server because the other machines can ping each other via hostnames but the Ubuntu cannot, I have tried this install on both a real machine and a virtual machine both same, it works perfectly on dhcp but as soon as I assign a static ip no hostname comms.
The static configuration follows most guides out there and everything else works when in static mode, I can ping by ip both internal and external and access shares etc so I am stumped after a week of chasing this.
Solutions tried, most out there, flushing caches frequently and utilising alternate measures such as winbind+nsswitch, didn't work.
the reason this is important is I am trying to use guacamole to control my nas and several machines running a mix of windows and Linux and would have to set the config to use static addresses and only use static on the network to enable this.



ps I should mention that when I try hostnames (ie ping win8) they are resolved to an external site that handles 404 errors (presumably for my isp)
again this does not happen when I ping from a windows machine with the same dns server entries.



# The primary network interface
auto enp0s3
iface enp0s3 inet static

# static
address 192.168.1.98
netmask 255.255.255.0
#network 192.168.1.0
#broadcast 192.168.1.255
gateway 192.168.1.254
dns-nameservers 192.168.1.254









share|improve this question























  • It reads to me like you've not setup DNS (nameservers; only ip address so it works when dhcp provides..) so check out askubuntu.com/questions/346838/…
    – guiverc
    Apr 18 at 8:45











  • the dns entry is pointing to the router, this handles the output from other machines ok
    – MDBarber
    Apr 18 at 8:47










  • Please edit your question and specify what exactly have you done to set the static IP address.
    – Melebius
    Apr 18 at 8:47












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a Server 16.04, minimal install, running perfectly with one exception.
When I change it to use a static ip it loses the ability to connect with other machines (both real and Vms) via their hostnames.
I'm pretty sure it is the server because the other machines can ping each other via hostnames but the Ubuntu cannot, I have tried this install on both a real machine and a virtual machine both same, it works perfectly on dhcp but as soon as I assign a static ip no hostname comms.
The static configuration follows most guides out there and everything else works when in static mode, I can ping by ip both internal and external and access shares etc so I am stumped after a week of chasing this.
Solutions tried, most out there, flushing caches frequently and utilising alternate measures such as winbind+nsswitch, didn't work.
the reason this is important is I am trying to use guacamole to control my nas and several machines running a mix of windows and Linux and would have to set the config to use static addresses and only use static on the network to enable this.



ps I should mention that when I try hostnames (ie ping win8) they are resolved to an external site that handles 404 errors (presumably for my isp)
again this does not happen when I ping from a windows machine with the same dns server entries.



# The primary network interface
auto enp0s3
iface enp0s3 inet static

# static
address 192.168.1.98
netmask 255.255.255.0
#network 192.168.1.0
#broadcast 192.168.1.255
gateway 192.168.1.254
dns-nameservers 192.168.1.254









share|improve this question















I have a Server 16.04, minimal install, running perfectly with one exception.
When I change it to use a static ip it loses the ability to connect with other machines (both real and Vms) via their hostnames.
I'm pretty sure it is the server because the other machines can ping each other via hostnames but the Ubuntu cannot, I have tried this install on both a real machine and a virtual machine both same, it works perfectly on dhcp but as soon as I assign a static ip no hostname comms.
The static configuration follows most guides out there and everything else works when in static mode, I can ping by ip both internal and external and access shares etc so I am stumped after a week of chasing this.
Solutions tried, most out there, flushing caches frequently and utilising alternate measures such as winbind+nsswitch, didn't work.
the reason this is important is I am trying to use guacamole to control my nas and several machines running a mix of windows and Linux and would have to set the config to use static addresses and only use static on the network to enable this.



ps I should mention that when I try hostnames (ie ping win8) they are resolved to an external site that handles 404 errors (presumably for my isp)
again this does not happen when I ping from a windows machine with the same dns server entries.



# The primary network interface
auto enp0s3
iface enp0s3 inet static

# static
address 192.168.1.98
netmask 255.255.255.0
#network 192.168.1.0
#broadcast 192.168.1.255
gateway 192.168.1.254
dns-nameservers 192.168.1.254






16.04 networking server static-ip






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 18 at 14:06









chili555

36.5k54776




36.5k54776










asked Apr 18 at 8:40









MDBarber

12




12











  • It reads to me like you've not setup DNS (nameservers; only ip address so it works when dhcp provides..) so check out askubuntu.com/questions/346838/…
    – guiverc
    Apr 18 at 8:45











  • the dns entry is pointing to the router, this handles the output from other machines ok
    – MDBarber
    Apr 18 at 8:47










  • Please edit your question and specify what exactly have you done to set the static IP address.
    – Melebius
    Apr 18 at 8:47
















  • It reads to me like you've not setup DNS (nameservers; only ip address so it works when dhcp provides..) so check out askubuntu.com/questions/346838/…
    – guiverc
    Apr 18 at 8:45











  • the dns entry is pointing to the router, this handles the output from other machines ok
    – MDBarber
    Apr 18 at 8:47










  • Please edit your question and specify what exactly have you done to set the static IP address.
    – Melebius
    Apr 18 at 8:47















It reads to me like you've not setup DNS (nameservers; only ip address so it works when dhcp provides..) so check out askubuntu.com/questions/346838/…
– guiverc
Apr 18 at 8:45





It reads to me like you've not setup DNS (nameservers; only ip address so it works when dhcp provides..) so check out askubuntu.com/questions/346838/…
– guiverc
Apr 18 at 8:45













the dns entry is pointing to the router, this handles the output from other machines ok
– MDBarber
Apr 18 at 8:47




the dns entry is pointing to the router, this handles the output from other machines ok
– MDBarber
Apr 18 at 8:47












Please edit your question and specify what exactly have you done to set the static IP address.
– Melebius
Apr 18 at 8:47




Please edit your question and specify what exactly have you done to set the static IP address.
– Melebius
Apr 18 at 8:47















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026051%2fgetting-server-to-utilise-hostnames-on-network%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026051%2fgetting-server-to-utilise-hostnames-on-network%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491