getting server to utilise hostnames on network
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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
16.04 networking server static-ip
add a comment |Â
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
16.04 networking server static-ip
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
add a comment |Â
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
16.04 networking server static-ip
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
16.04 networking server static-ip
edited Apr 18 at 14:06
![](https://i.stack.imgur.com/cKG9a.jpg?s=32&g=1)
![](https://i.stack.imgur.com/cKG9a.jpg?s=32&g=1)
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
add a comment |Â
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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