Can browse to an app at localhost.company.com but that isn't in /etc/hosts; where else could the redirection be?

Clash Royale CLAN TAG#URR8PPP
✗ cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
✗
But I'm browsing to an app (my app that I'm building/running/coding) at http://localhost.company.com:8080/help.
Checked cat /private/etc/hosts and it matches /etc/hosts.
So where else can I look for this localhost.company.com redirection?
osx ip webserver hosts
|
show 3 more comments
✗ cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
✗
But I'm browsing to an app (my app that I'm building/running/coding) at http://localhost.company.com:8080/help.
Checked cat /private/etc/hosts and it matches /etc/hosts.
So where else can I look for this localhost.company.com redirection?
osx ip webserver hosts
localhost is not localhost.domain
– Dani_l
Jan 4 at 19:30
2
Check dns - ping localhost.company.com, and see the ip
– Dani_l
Jan 4 at 19:31
but I know that it's running on my machine -- I started the app that's listening on that port (updated question)
– jcollum
Jan 4 at 19:32
1
What is your hostname fqdn? Is it possible it’s localhost.company?
– Dani_l
Jan 4 at 19:37
1
Your company might have a DNS record forlocalhost.company.compointing at 127.0.0.1.
– DopeGhoti
Jan 4 at 19:50
|
show 3 more comments
✗ cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
✗
But I'm browsing to an app (my app that I'm building/running/coding) at http://localhost.company.com:8080/help.
Checked cat /private/etc/hosts and it matches /etc/hosts.
So where else can I look for this localhost.company.com redirection?
osx ip webserver hosts
✗ cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
✗
But I'm browsing to an app (my app that I'm building/running/coding) at http://localhost.company.com:8080/help.
Checked cat /private/etc/hosts and it matches /etc/hosts.
So where else can I look for this localhost.company.com redirection?
osx ip webserver hosts
osx ip webserver hosts
edited Jan 5 at 12:13
Jeff Schaller
39.5k1054126
39.5k1054126
asked Jan 4 at 19:22
jcollumjcollum
4511515
4511515
localhost is not localhost.domain
– Dani_l
Jan 4 at 19:30
2
Check dns - ping localhost.company.com, and see the ip
– Dani_l
Jan 4 at 19:31
but I know that it's running on my machine -- I started the app that's listening on that port (updated question)
– jcollum
Jan 4 at 19:32
1
What is your hostname fqdn? Is it possible it’s localhost.company?
– Dani_l
Jan 4 at 19:37
1
Your company might have a DNS record forlocalhost.company.compointing at 127.0.0.1.
– DopeGhoti
Jan 4 at 19:50
|
show 3 more comments
localhost is not localhost.domain
– Dani_l
Jan 4 at 19:30
2
Check dns - ping localhost.company.com, and see the ip
– Dani_l
Jan 4 at 19:31
but I know that it's running on my machine -- I started the app that's listening on that port (updated question)
– jcollum
Jan 4 at 19:32
1
What is your hostname fqdn? Is it possible it’s localhost.company?
– Dani_l
Jan 4 at 19:37
1
Your company might have a DNS record forlocalhost.company.compointing at 127.0.0.1.
– DopeGhoti
Jan 4 at 19:50
localhost is not localhost.domain
– Dani_l
Jan 4 at 19:30
localhost is not localhost.domain
– Dani_l
Jan 4 at 19:30
2
2
Check dns - ping localhost.company.com, and see the ip
– Dani_l
Jan 4 at 19:31
Check dns - ping localhost.company.com, and see the ip
– Dani_l
Jan 4 at 19:31
but I know that it's running on my machine -- I started the app that's listening on that port (updated question)
– jcollum
Jan 4 at 19:32
but I know that it's running on my machine -- I started the app that's listening on that port (updated question)
– jcollum
Jan 4 at 19:32
1
1
What is your hostname fqdn? Is it possible it’s localhost.company?
– Dani_l
Jan 4 at 19:37
What is your hostname fqdn? Is it possible it’s localhost.company?
– Dani_l
Jan 4 at 19:37
1
1
Your company might have a DNS record for
localhost.company.com pointing at 127.0.0.1.– DopeGhoti
Jan 4 at 19:50
Your company might have a DNS record for
localhost.company.com pointing at 127.0.0.1.– DopeGhoti
Jan 4 at 19:50
|
show 3 more comments
1 Answer
1
active
oldest
votes
Found the answer elsewhere. The nslookup tool:
nslookup is a network administration command-line tool available for many computer operating systems for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or for any other specific DNS record.
So, running that for localhost tells me that (I think) localhost.company.com is mapped to everyone's local machine at the DNS level.
✗ nslookup
> localhost
Server: x.x.x.x
Address: x.x.x.x#x
Non-authoritative answer:
Name: localhost.company.com
Address: 127.0.0.1
I'm even getting downvoted on the answer, wtf
– jcollum
Jan 4 at 22:11
1
You're getting downvoted (not by me, FWIW) because Dani_l and DopeGhoti told you exactly what to look for, and now you're here claiming that you found the answer elsewhere. And because you're just dumping a command and its output, without any explanation.
– G-Man
Jan 5 at 1:19
I answered Dani's question. DopeGhoti didn't tell me how I could check for that -- which appears to be the answer but since they didn't actually create an answer...
– jcollum
Jan 5 at 6:36
I've amended my answer. It seems rude to downvote people for not responding to every comment or whatever.
– jcollum
Jan 5 at 6:39
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f492560%2fcan-browse-to-an-app-at-localhost-company-com-but-that-isnt-in-etc-hosts-wher%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Found the answer elsewhere. The nslookup tool:
nslookup is a network administration command-line tool available for many computer operating systems for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or for any other specific DNS record.
So, running that for localhost tells me that (I think) localhost.company.com is mapped to everyone's local machine at the DNS level.
✗ nslookup
> localhost
Server: x.x.x.x
Address: x.x.x.x#x
Non-authoritative answer:
Name: localhost.company.com
Address: 127.0.0.1
I'm even getting downvoted on the answer, wtf
– jcollum
Jan 4 at 22:11
1
You're getting downvoted (not by me, FWIW) because Dani_l and DopeGhoti told you exactly what to look for, and now you're here claiming that you found the answer elsewhere. And because you're just dumping a command and its output, without any explanation.
– G-Man
Jan 5 at 1:19
I answered Dani's question. DopeGhoti didn't tell me how I could check for that -- which appears to be the answer but since they didn't actually create an answer...
– jcollum
Jan 5 at 6:36
I've amended my answer. It seems rude to downvote people for not responding to every comment or whatever.
– jcollum
Jan 5 at 6:39
add a comment |
Found the answer elsewhere. The nslookup tool:
nslookup is a network administration command-line tool available for many computer operating systems for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or for any other specific DNS record.
So, running that for localhost tells me that (I think) localhost.company.com is mapped to everyone's local machine at the DNS level.
✗ nslookup
> localhost
Server: x.x.x.x
Address: x.x.x.x#x
Non-authoritative answer:
Name: localhost.company.com
Address: 127.0.0.1
I'm even getting downvoted on the answer, wtf
– jcollum
Jan 4 at 22:11
1
You're getting downvoted (not by me, FWIW) because Dani_l and DopeGhoti told you exactly what to look for, and now you're here claiming that you found the answer elsewhere. And because you're just dumping a command and its output, without any explanation.
– G-Man
Jan 5 at 1:19
I answered Dani's question. DopeGhoti didn't tell me how I could check for that -- which appears to be the answer but since they didn't actually create an answer...
– jcollum
Jan 5 at 6:36
I've amended my answer. It seems rude to downvote people for not responding to every comment or whatever.
– jcollum
Jan 5 at 6:39
add a comment |
Found the answer elsewhere. The nslookup tool:
nslookup is a network administration command-line tool available for many computer operating systems for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or for any other specific DNS record.
So, running that for localhost tells me that (I think) localhost.company.com is mapped to everyone's local machine at the DNS level.
✗ nslookup
> localhost
Server: x.x.x.x
Address: x.x.x.x#x
Non-authoritative answer:
Name: localhost.company.com
Address: 127.0.0.1
Found the answer elsewhere. The nslookup tool:
nslookup is a network administration command-line tool available for many computer operating systems for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or for any other specific DNS record.
So, running that for localhost tells me that (I think) localhost.company.com is mapped to everyone's local machine at the DNS level.
✗ nslookup
> localhost
Server: x.x.x.x
Address: x.x.x.x#x
Non-authoritative answer:
Name: localhost.company.com
Address: 127.0.0.1
edited Jan 5 at 6:39
answered Jan 4 at 20:58
jcollumjcollum
4511515
4511515
I'm even getting downvoted on the answer, wtf
– jcollum
Jan 4 at 22:11
1
You're getting downvoted (not by me, FWIW) because Dani_l and DopeGhoti told you exactly what to look for, and now you're here claiming that you found the answer elsewhere. And because you're just dumping a command and its output, without any explanation.
– G-Man
Jan 5 at 1:19
I answered Dani's question. DopeGhoti didn't tell me how I could check for that -- which appears to be the answer but since they didn't actually create an answer...
– jcollum
Jan 5 at 6:36
I've amended my answer. It seems rude to downvote people for not responding to every comment or whatever.
– jcollum
Jan 5 at 6:39
add a comment |
I'm even getting downvoted on the answer, wtf
– jcollum
Jan 4 at 22:11
1
You're getting downvoted (not by me, FWIW) because Dani_l and DopeGhoti told you exactly what to look for, and now you're here claiming that you found the answer elsewhere. And because you're just dumping a command and its output, without any explanation.
– G-Man
Jan 5 at 1:19
I answered Dani's question. DopeGhoti didn't tell me how I could check for that -- which appears to be the answer but since they didn't actually create an answer...
– jcollum
Jan 5 at 6:36
I've amended my answer. It seems rude to downvote people for not responding to every comment or whatever.
– jcollum
Jan 5 at 6:39
I'm even getting downvoted on the answer, wtf
– jcollum
Jan 4 at 22:11
I'm even getting downvoted on the answer, wtf
– jcollum
Jan 4 at 22:11
1
1
You're getting downvoted (not by me, FWIW) because Dani_l and DopeGhoti told you exactly what to look for, and now you're here claiming that you found the answer elsewhere. And because you're just dumping a command and its output, without any explanation.
– G-Man
Jan 5 at 1:19
You're getting downvoted (not by me, FWIW) because Dani_l and DopeGhoti told you exactly what to look for, and now you're here claiming that you found the answer elsewhere. And because you're just dumping a command and its output, without any explanation.
– G-Man
Jan 5 at 1:19
I answered Dani's question. DopeGhoti didn't tell me how I could check for that -- which appears to be the answer but since they didn't actually create an answer...
– jcollum
Jan 5 at 6:36
I answered Dani's question. DopeGhoti didn't tell me how I could check for that -- which appears to be the answer but since they didn't actually create an answer...
– jcollum
Jan 5 at 6:36
I've amended my answer. It seems rude to downvote people for not responding to every comment or whatever.
– jcollum
Jan 5 at 6:39
I've amended my answer. It seems rude to downvote people for not responding to every comment or whatever.
– jcollum
Jan 5 at 6:39
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f492560%2fcan-browse-to-an-app-at-localhost-company-com-but-that-isnt-in-etc-hosts-wher%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
localhost is not localhost.domain
– Dani_l
Jan 4 at 19:30
2
Check dns - ping localhost.company.com, and see the ip
– Dani_l
Jan 4 at 19:31
but I know that it's running on my machine -- I started the app that's listening on that port (updated question)
– jcollum
Jan 4 at 19:32
1
What is your hostname fqdn? Is it possible it’s localhost.company?
– Dani_l
Jan 4 at 19:37
1
Your company might have a DNS record for
localhost.company.compointing at 127.0.0.1.– DopeGhoti
Jan 4 at 19:50