Hostname does not show up in router?












0















There are two machines:




  1. Ubuntu Desktop (15.04) which connect to WLAN. Get IP from dhcp server (router). hostname shows up in the router properly. This machine uses Network Manager.


  2. Ubuntu Server (14.04) which connect to WLAN. Has static IP. hostname DOES NOT show up in the router at all. This machine DOES NOT use Network Manager.



Both machines have been configured to have DNS server. For Ubuntu Desktop DNS Server is on 127.0.1.1 and for Ubuntu Server is on 127.0.0.1. Both machine have hostname file containing their hostname.



I have read almost all posts related to this issue in askubuntu and some other sites, but still no hostname in the router for Ubuntu Server?



/etc/network/interfaces:



auto wlan0
iface wlan0 inet static
wpa-scan_ssid 0
address 192.168.1.200
netmask 255.255.255.0
network 192.0.0.0
broadcast 192.0.0.255
gateway 192.168.1.1
dns-nameserver 192.168.1.1









share|improve this question

























  • did you set the hostname option in your interface setup.

    – user448115
    Sep 19 '15 at 10:38













  • I did ,but it did not work.

    – Tjax
    Sep 19 '15 at 10:43






  • 1





    Your server has a static IP and therefore he doesn't get the IP from the router. Which router you use?

    – A.B.
    Sep 19 '15 at 11:04













  • could you add to the question the relevant lines of your interface configuration file

    – user448115
    Sep 19 '15 at 11:11






  • 1





    Your DNS is 192.168.1.1 and not 127.0.x.1

    – A.B.
    Sep 19 '15 at 11:27
















0















There are two machines:




  1. Ubuntu Desktop (15.04) which connect to WLAN. Get IP from dhcp server (router). hostname shows up in the router properly. This machine uses Network Manager.


  2. Ubuntu Server (14.04) which connect to WLAN. Has static IP. hostname DOES NOT show up in the router at all. This machine DOES NOT use Network Manager.



Both machines have been configured to have DNS server. For Ubuntu Desktop DNS Server is on 127.0.1.1 and for Ubuntu Server is on 127.0.0.1. Both machine have hostname file containing their hostname.



I have read almost all posts related to this issue in askubuntu and some other sites, but still no hostname in the router for Ubuntu Server?



/etc/network/interfaces:



auto wlan0
iface wlan0 inet static
wpa-scan_ssid 0
address 192.168.1.200
netmask 255.255.255.0
network 192.0.0.0
broadcast 192.0.0.255
gateway 192.168.1.1
dns-nameserver 192.168.1.1









share|improve this question

























  • did you set the hostname option in your interface setup.

    – user448115
    Sep 19 '15 at 10:38













  • I did ,but it did not work.

    – Tjax
    Sep 19 '15 at 10:43






  • 1





    Your server has a static IP and therefore he doesn't get the IP from the router. Which router you use?

    – A.B.
    Sep 19 '15 at 11:04













  • could you add to the question the relevant lines of your interface configuration file

    – user448115
    Sep 19 '15 at 11:11






  • 1





    Your DNS is 192.168.1.1 and not 127.0.x.1

    – A.B.
    Sep 19 '15 at 11:27














0












0








0


2






There are two machines:




  1. Ubuntu Desktop (15.04) which connect to WLAN. Get IP from dhcp server (router). hostname shows up in the router properly. This machine uses Network Manager.


  2. Ubuntu Server (14.04) which connect to WLAN. Has static IP. hostname DOES NOT show up in the router at all. This machine DOES NOT use Network Manager.



Both machines have been configured to have DNS server. For Ubuntu Desktop DNS Server is on 127.0.1.1 and for Ubuntu Server is on 127.0.0.1. Both machine have hostname file containing their hostname.



I have read almost all posts related to this issue in askubuntu and some other sites, but still no hostname in the router for Ubuntu Server?



/etc/network/interfaces:



auto wlan0
iface wlan0 inet static
wpa-scan_ssid 0
address 192.168.1.200
netmask 255.255.255.0
network 192.0.0.0
broadcast 192.0.0.255
gateway 192.168.1.1
dns-nameserver 192.168.1.1









share|improve this question
















There are two machines:




  1. Ubuntu Desktop (15.04) which connect to WLAN. Get IP from dhcp server (router). hostname shows up in the router properly. This machine uses Network Manager.


  2. Ubuntu Server (14.04) which connect to WLAN. Has static IP. hostname DOES NOT show up in the router at all. This machine DOES NOT use Network Manager.



Both machines have been configured to have DNS server. For Ubuntu Desktop DNS Server is on 127.0.1.1 and for Ubuntu Server is on 127.0.0.1. Both machine have hostname file containing their hostname.



I have read almost all posts related to this issue in askubuntu and some other sites, but still no hostname in the router for Ubuntu Server?



/etc/network/interfaces:



auto wlan0
iface wlan0 inet static
wpa-scan_ssid 0
address 192.168.1.200
netmask 255.255.255.0
network 192.0.0.0
broadcast 192.0.0.255
gateway 192.168.1.1
dns-nameserver 192.168.1.1






networking






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 19 '15 at 11:26







Tjax

















asked Sep 19 '15 at 10:20









TjaxTjax

313




313













  • did you set the hostname option in your interface setup.

    – user448115
    Sep 19 '15 at 10:38













  • I did ,but it did not work.

    – Tjax
    Sep 19 '15 at 10:43






  • 1





    Your server has a static IP and therefore he doesn't get the IP from the router. Which router you use?

    – A.B.
    Sep 19 '15 at 11:04













  • could you add to the question the relevant lines of your interface configuration file

    – user448115
    Sep 19 '15 at 11:11






  • 1





    Your DNS is 192.168.1.1 and not 127.0.x.1

    – A.B.
    Sep 19 '15 at 11:27



















  • did you set the hostname option in your interface setup.

    – user448115
    Sep 19 '15 at 10:38













  • I did ,but it did not work.

    – Tjax
    Sep 19 '15 at 10:43






  • 1





    Your server has a static IP and therefore he doesn't get the IP from the router. Which router you use?

    – A.B.
    Sep 19 '15 at 11:04













  • could you add to the question the relevant lines of your interface configuration file

    – user448115
    Sep 19 '15 at 11:11






  • 1





    Your DNS is 192.168.1.1 and not 127.0.x.1

    – A.B.
    Sep 19 '15 at 11:27

















did you set the hostname option in your interface setup.

– user448115
Sep 19 '15 at 10:38







did you set the hostname option in your interface setup.

– user448115
Sep 19 '15 at 10:38















I did ,but it did not work.

– Tjax
Sep 19 '15 at 10:43





I did ,but it did not work.

– Tjax
Sep 19 '15 at 10:43




1




1





Your server has a static IP and therefore he doesn't get the IP from the router. Which router you use?

– A.B.
Sep 19 '15 at 11:04







Your server has a static IP and therefore he doesn't get the IP from the router. Which router you use?

– A.B.
Sep 19 '15 at 11:04















could you add to the question the relevant lines of your interface configuration file

– user448115
Sep 19 '15 at 11:11





could you add to the question the relevant lines of your interface configuration file

– user448115
Sep 19 '15 at 11:11




1




1





Your DNS is 192.168.1.1 and not 127.0.x.1

– A.B.
Sep 19 '15 at 11:27





Your DNS is 192.168.1.1 and not 127.0.x.1

– A.B.
Sep 19 '15 at 11:27










2 Answers
2






active

oldest

votes


















2














The router gets your hostname from the dhcp request. If the interface is set to static it never makes this request.



A way of getting static ip address and use dhcp requests at the same time is to




  • set a static ip address for the machine on the router and

  • use dhcp for your interface



auto wlan0
iface wlan0 inet dhcp
wpa-scan_ssid 0
hostname myhostname





share|improve this answer
























  • It might work in the way you say, but I can not use it , because there is no entry in the router to set a static ip. If I set up Ubuntu server not to have static ip , there is no hostname as well.

    – Tjax
    Sep 19 '15 at 11:40











  • I just check it just a few moment ago, it looks like , when it sets on DHCP, the hostname shows up. I accept your answer though I can not use it. Is there any other way to make that request in another way?

    – Tjax
    Sep 19 '15 at 12:26



















0














You need to install SAMBA...as soon as you do, then your Ubuntu hostname will be resolvable from a Windows or Linux client. This will def work for DHCP configured system...less certain for fixed IP.






share|improve this answer
























  • How can samba help in this situation? The problem is that the host doesn't use DHCP, and thus does not send a hostname to the dhcp server, which can be included in the DNS server of said router...

    – vidarlo
    Jan 3 at 18:51











  • Often wondered the same thing. Not sure exactly which part of Samba is responsible for it, but the hostname is often not resolvable unless samba is installed. Worth a try....

    – Klay Martens
    Jan 4 at 19:16











  • The part that is responsible for this is the Windows Internet Name Service, or wins. The accepted answer is the correct solution.

    – vidarlo
    Jan 4 at 19:22











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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
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%2f675909%2fhostname-does-not-show-up-in-router%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














The router gets your hostname from the dhcp request. If the interface is set to static it never makes this request.



A way of getting static ip address and use dhcp requests at the same time is to




  • set a static ip address for the machine on the router and

  • use dhcp for your interface



auto wlan0
iface wlan0 inet dhcp
wpa-scan_ssid 0
hostname myhostname





share|improve this answer
























  • It might work in the way you say, but I can not use it , because there is no entry in the router to set a static ip. If I set up Ubuntu server not to have static ip , there is no hostname as well.

    – Tjax
    Sep 19 '15 at 11:40











  • I just check it just a few moment ago, it looks like , when it sets on DHCP, the hostname shows up. I accept your answer though I can not use it. Is there any other way to make that request in another way?

    – Tjax
    Sep 19 '15 at 12:26
















2














The router gets your hostname from the dhcp request. If the interface is set to static it never makes this request.



A way of getting static ip address and use dhcp requests at the same time is to




  • set a static ip address for the machine on the router and

  • use dhcp for your interface



auto wlan0
iface wlan0 inet dhcp
wpa-scan_ssid 0
hostname myhostname





share|improve this answer
























  • It might work in the way you say, but I can not use it , because there is no entry in the router to set a static ip. If I set up Ubuntu server not to have static ip , there is no hostname as well.

    – Tjax
    Sep 19 '15 at 11:40











  • I just check it just a few moment ago, it looks like , when it sets on DHCP, the hostname shows up. I accept your answer though I can not use it. Is there any other way to make that request in another way?

    – Tjax
    Sep 19 '15 at 12:26














2












2








2







The router gets your hostname from the dhcp request. If the interface is set to static it never makes this request.



A way of getting static ip address and use dhcp requests at the same time is to




  • set a static ip address for the machine on the router and

  • use dhcp for your interface



auto wlan0
iface wlan0 inet dhcp
wpa-scan_ssid 0
hostname myhostname





share|improve this answer













The router gets your hostname from the dhcp request. If the interface is set to static it never makes this request.



A way of getting static ip address and use dhcp requests at the same time is to




  • set a static ip address for the machine on the router and

  • use dhcp for your interface



auto wlan0
iface wlan0 inet dhcp
wpa-scan_ssid 0
hostname myhostname






share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 19 '15 at 11:33







user448115




















  • It might work in the way you say, but I can not use it , because there is no entry in the router to set a static ip. If I set up Ubuntu server not to have static ip , there is no hostname as well.

    – Tjax
    Sep 19 '15 at 11:40











  • I just check it just a few moment ago, it looks like , when it sets on DHCP, the hostname shows up. I accept your answer though I can not use it. Is there any other way to make that request in another way?

    – Tjax
    Sep 19 '15 at 12:26



















  • It might work in the way you say, but I can not use it , because there is no entry in the router to set a static ip. If I set up Ubuntu server not to have static ip , there is no hostname as well.

    – Tjax
    Sep 19 '15 at 11:40











  • I just check it just a few moment ago, it looks like , when it sets on DHCP, the hostname shows up. I accept your answer though I can not use it. Is there any other way to make that request in another way?

    – Tjax
    Sep 19 '15 at 12:26

















It might work in the way you say, but I can not use it , because there is no entry in the router to set a static ip. If I set up Ubuntu server not to have static ip , there is no hostname as well.

– Tjax
Sep 19 '15 at 11:40





It might work in the way you say, but I can not use it , because there is no entry in the router to set a static ip. If I set up Ubuntu server not to have static ip , there is no hostname as well.

– Tjax
Sep 19 '15 at 11:40













I just check it just a few moment ago, it looks like , when it sets on DHCP, the hostname shows up. I accept your answer though I can not use it. Is there any other way to make that request in another way?

– Tjax
Sep 19 '15 at 12:26





I just check it just a few moment ago, it looks like , when it sets on DHCP, the hostname shows up. I accept your answer though I can not use it. Is there any other way to make that request in another way?

– Tjax
Sep 19 '15 at 12:26













0














You need to install SAMBA...as soon as you do, then your Ubuntu hostname will be resolvable from a Windows or Linux client. This will def work for DHCP configured system...less certain for fixed IP.






share|improve this answer
























  • How can samba help in this situation? The problem is that the host doesn't use DHCP, and thus does not send a hostname to the dhcp server, which can be included in the DNS server of said router...

    – vidarlo
    Jan 3 at 18:51











  • Often wondered the same thing. Not sure exactly which part of Samba is responsible for it, but the hostname is often not resolvable unless samba is installed. Worth a try....

    – Klay Martens
    Jan 4 at 19:16











  • The part that is responsible for this is the Windows Internet Name Service, or wins. The accepted answer is the correct solution.

    – vidarlo
    Jan 4 at 19:22
















0














You need to install SAMBA...as soon as you do, then your Ubuntu hostname will be resolvable from a Windows or Linux client. This will def work for DHCP configured system...less certain for fixed IP.






share|improve this answer
























  • How can samba help in this situation? The problem is that the host doesn't use DHCP, and thus does not send a hostname to the dhcp server, which can be included in the DNS server of said router...

    – vidarlo
    Jan 3 at 18:51











  • Often wondered the same thing. Not sure exactly which part of Samba is responsible for it, but the hostname is often not resolvable unless samba is installed. Worth a try....

    – Klay Martens
    Jan 4 at 19:16











  • The part that is responsible for this is the Windows Internet Name Service, or wins. The accepted answer is the correct solution.

    – vidarlo
    Jan 4 at 19:22














0












0








0







You need to install SAMBA...as soon as you do, then your Ubuntu hostname will be resolvable from a Windows or Linux client. This will def work for DHCP configured system...less certain for fixed IP.






share|improve this answer













You need to install SAMBA...as soon as you do, then your Ubuntu hostname will be resolvable from a Windows or Linux client. This will def work for DHCP configured system...less certain for fixed IP.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 3 at 9:04









Klay MartensKlay Martens

1




1













  • How can samba help in this situation? The problem is that the host doesn't use DHCP, and thus does not send a hostname to the dhcp server, which can be included in the DNS server of said router...

    – vidarlo
    Jan 3 at 18:51











  • Often wondered the same thing. Not sure exactly which part of Samba is responsible for it, but the hostname is often not resolvable unless samba is installed. Worth a try....

    – Klay Martens
    Jan 4 at 19:16











  • The part that is responsible for this is the Windows Internet Name Service, or wins. The accepted answer is the correct solution.

    – vidarlo
    Jan 4 at 19:22



















  • How can samba help in this situation? The problem is that the host doesn't use DHCP, and thus does not send a hostname to the dhcp server, which can be included in the DNS server of said router...

    – vidarlo
    Jan 3 at 18:51











  • Often wondered the same thing. Not sure exactly which part of Samba is responsible for it, but the hostname is often not resolvable unless samba is installed. Worth a try....

    – Klay Martens
    Jan 4 at 19:16











  • The part that is responsible for this is the Windows Internet Name Service, or wins. The accepted answer is the correct solution.

    – vidarlo
    Jan 4 at 19:22

















How can samba help in this situation? The problem is that the host doesn't use DHCP, and thus does not send a hostname to the dhcp server, which can be included in the DNS server of said router...

– vidarlo
Jan 3 at 18:51





How can samba help in this situation? The problem is that the host doesn't use DHCP, and thus does not send a hostname to the dhcp server, which can be included in the DNS server of said router...

– vidarlo
Jan 3 at 18:51













Often wondered the same thing. Not sure exactly which part of Samba is responsible for it, but the hostname is often not resolvable unless samba is installed. Worth a try....

– Klay Martens
Jan 4 at 19:16





Often wondered the same thing. Not sure exactly which part of Samba is responsible for it, but the hostname is often not resolvable unless samba is installed. Worth a try....

– Klay Martens
Jan 4 at 19:16













The part that is responsible for this is the Windows Internet Name Service, or wins. The accepted answer is the correct solution.

– vidarlo
Jan 4 at 19:22





The part that is responsible for this is the Windows Internet Name Service, or wins. The accepted answer is the correct solution.

– vidarlo
Jan 4 at 19:22


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f675909%2fhostname-does-not-show-up-in-router%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

File:DeusFollowingSea.jpg