Hostname does not show up in router?
There are two machines:
Ubuntu Desktop (15.04) which connect to
WLAN
. GetIP
fromdhcp server
(router).hostname
shows up in the router properly. This machine usesNetwork Manager
.Ubuntu Server (14.04) which connect to
WLAN
. Has staticIP
.hostname
DOES NOT show up in the router at all. This machine DOES NOT useNetwork 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
|
show 2 more comments
There are two machines:
Ubuntu Desktop (15.04) which connect to
WLAN
. GetIP
fromdhcp server
(router).hostname
shows up in the router properly. This machine usesNetwork Manager
.Ubuntu Server (14.04) which connect to
WLAN
. Has staticIP
.hostname
DOES NOT show up in the router at all. This machine DOES NOT useNetwork 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
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
|
show 2 more comments
There are two machines:
Ubuntu Desktop (15.04) which connect to
WLAN
. GetIP
fromdhcp server
(router).hostname
shows up in the router properly. This machine usesNetwork Manager
.Ubuntu Server (14.04) which connect to
WLAN
. Has staticIP
.hostname
DOES NOT show up in the router at all. This machine DOES NOT useNetwork 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
There are two machines:
Ubuntu Desktop (15.04) which connect to
WLAN
. GetIP
fromdhcp server
(router).hostname
shows up in the router properly. This machine usesNetwork Manager
.Ubuntu Server (14.04) which connect to
WLAN
. Has staticIP
.hostname
DOES NOT show up in the router at all. This machine DOES NOT useNetwork 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
networking
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
|
show 2 more comments
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
|
show 2 more comments
2 Answers
2
active
oldest
votes
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
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
add a comment |
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.
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
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
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