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












-2














✗ 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?










share|improve this question
























  • localhost is not localhost.domain
    – Dani_l
    2 days ago






  • 2




    Check dns - ping localhost.company.com, and see the ip
    – Dani_l
    2 days ago










  • but I know that it's running on my machine -- I started the app that's listening on that port (updated question)
    – jcollum
    2 days ago








  • 1




    What is your hostname fqdn? Is it possible it’s localhost.company?
    – Dani_l
    yesterday






  • 1




    Your company might have a DNS record for localhost.company.com pointing at 127.0.0.1.
    – DopeGhoti
    yesterday


















-2














✗ 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?










share|improve this question
























  • localhost is not localhost.domain
    – Dani_l
    2 days ago






  • 2




    Check dns - ping localhost.company.com, and see the ip
    – Dani_l
    2 days ago










  • but I know that it's running on my machine -- I started the app that's listening on that port (updated question)
    – jcollum
    2 days ago








  • 1




    What is your hostname fqdn? Is it possible it’s localhost.company?
    – Dani_l
    yesterday






  • 1




    Your company might have a DNS record for localhost.company.com pointing at 127.0.0.1.
    – DopeGhoti
    yesterday
















-2












-2








-2







✗ 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?










share|improve this question















✗ 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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









Jeff Schaller

39k1053125




39k1053125










asked 2 days ago









jcollum

4291515




4291515












  • localhost is not localhost.domain
    – Dani_l
    2 days ago






  • 2




    Check dns - ping localhost.company.com, and see the ip
    – Dani_l
    2 days ago










  • but I know that it's running on my machine -- I started the app that's listening on that port (updated question)
    – jcollum
    2 days ago








  • 1




    What is your hostname fqdn? Is it possible it’s localhost.company?
    – Dani_l
    yesterday






  • 1




    Your company might have a DNS record for localhost.company.com pointing at 127.0.0.1.
    – DopeGhoti
    yesterday




















  • localhost is not localhost.domain
    – Dani_l
    2 days ago






  • 2




    Check dns - ping localhost.company.com, and see the ip
    – Dani_l
    2 days ago










  • but I know that it's running on my machine -- I started the app that's listening on that port (updated question)
    – jcollum
    2 days ago








  • 1




    What is your hostname fqdn? Is it possible it’s localhost.company?
    – Dani_l
    yesterday






  • 1




    Your company might have a DNS record for localhost.company.com pointing at 127.0.0.1.
    – DopeGhoti
    yesterday


















localhost is not localhost.domain
– Dani_l
2 days ago




localhost is not localhost.domain
– Dani_l
2 days ago




2




2




Check dns - ping localhost.company.com, and see the ip
– Dani_l
2 days ago




Check dns - ping localhost.company.com, and see the ip
– Dani_l
2 days ago












but I know that it's running on my machine -- I started the app that's listening on that port (updated question)
– jcollum
2 days ago






but I know that it's running on my machine -- I started the app that's listening on that port (updated question)
– jcollum
2 days ago






1




1




What is your hostname fqdn? Is it possible it’s localhost.company?
– Dani_l
yesterday




What is your hostname fqdn? Is it possible it’s localhost.company?
– Dani_l
yesterday




1




1




Your company might have a DNS record for localhost.company.com pointing at 127.0.0.1.
– DopeGhoti
yesterday






Your company might have a DNS record for localhost.company.com pointing at 127.0.0.1.
– DopeGhoti
yesterday












1 Answer
1






active

oldest

votes


















-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





share|improve this answer























  • I'm even getting downvoted on the answer, wtf
    – jcollum
    yesterday






  • 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
    yesterday












  • 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
    yesterday












  • I've amended my answer. It seems rude to downvote people for not responding to every comment or whatever.
    – jcollum
    yesterday













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
});


}
});














draft saved

draft discarded


















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









-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





share|improve this answer























  • I'm even getting downvoted on the answer, wtf
    – jcollum
    yesterday






  • 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
    yesterday












  • 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
    yesterday












  • I've amended my answer. It seems rude to downvote people for not responding to every comment or whatever.
    – jcollum
    yesterday


















-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





share|improve this answer























  • I'm even getting downvoted on the answer, wtf
    – jcollum
    yesterday






  • 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
    yesterday












  • 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
    yesterday












  • I've amended my answer. It seems rude to downvote people for not responding to every comment or whatever.
    – jcollum
    yesterday
















-1












-1








-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





share|improve this answer














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






share|improve this answer














share|improve this answer



share|improve this answer








edited yesterday

























answered yesterday









jcollum

4291515




4291515












  • I'm even getting downvoted on the answer, wtf
    – jcollum
    yesterday






  • 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
    yesterday












  • 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
    yesterday












  • I've amended my answer. It seems rude to downvote people for not responding to every comment or whatever.
    – jcollum
    yesterday




















  • I'm even getting downvoted on the answer, wtf
    – jcollum
    yesterday






  • 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
    yesterday












  • 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
    yesterday












  • I've amended my answer. It seems rude to downvote people for not responding to every comment or whatever.
    – jcollum
    yesterday


















I'm even getting downvoted on the answer, wtf
– jcollum
yesterday




I'm even getting downvoted on the answer, wtf
– jcollum
yesterday




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
yesterday






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
yesterday














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
yesterday






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
yesterday














I've amended my answer. It seems rude to downvote people for not responding to every comment or whatever.
– jcollum
yesterday






I've amended my answer. It seems rude to downvote people for not responding to every comment or whatever.
– jcollum
yesterday




















draft saved

draft discarded




















































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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%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





















































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

How to make a Squid Proxy server?

Is this a new Fibonacci Identity?

19世紀