首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >可以浏览到localhost.company.com上的应用程序,但它不在/etc/host中;还能在哪里重定向呢?

问可以浏览到localhost.company.com上的应用程序,但它不在/etc/host中;还能在哪里重定向呢?
EN

Unix & Linux用户
提问于 2019-01-04 19:22:59
回答 1查看 87关注 0票数 -1
代码语言:javascript
复制
✗ 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
✗

但我正在http://localhost.company.com:8080/help上浏览一个应用程序(我正在构建/运行/编码的应用程序)。

检查了cat /private/etc/hosts,它与/etc/hosts匹配。

那么,我还能在哪里找到这个localhost.company.com重定向呢?

EN

回答 1

Unix & Linux用户

发布于 2019-01-04 20:58:44

在其他地方找到了答案。nslookup工具:

nslookup是一种网络管理命令行工具,可用于许多计算机操作系统,用于查询域名系统( DNS )以获取域名或IP地址映射,或用于任何其他特定的DNS记录。

因此,为localhost运行它告诉我,(我认为) localhost.company.com映射到每个人的本地机器的DNS级别。

代码语言:javascript
复制
✗ 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
票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/492560

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档