大网数据广告活动
服务器运维问答

How do I give my Ubuntu machine a domain name on a Windows network?

· 52CE 我爱测

I want to setup a GIT server on my Ubuntu machine in the office but I want a domain name for it that I can connect to from Windows machines on the same network. I've read about using Samba or adding the machine to Active Director…

问题原文

原帖链接 · undefined · CC BY-SA 3.0

I want to setup a GIT server on my Ubuntu machine in the office but I want a domain name for it that I can connect to from Windows machines on the same network. I've read about using Samba or adding the machine to Active Directory but I'm a bit lost with both. All machines are on the same a.b.com domain.

I have modified my hosts file on the Ubuntu machine to show the following: 127.0.0.1 ubuntu 127.0.1.1 ubuntu.a.b.com ubuntu 192.168.0.9 ubuntu.a.b.com ubuntu

I have admin credentials to the domain controllers and Active Directory. What can I do to enable other Windows machines to access the Ubuntu machine for something like SSH or a GIT server via a domain name rather than the machines IP address?

已采纳解答

原帖链接 · Sam K · CC BY-SA 3.0

You need to add a static entry on your DNS server for that machine. Just add an A record for that machine and the 'subdomain' name you want to give it under Forward Lookup Zones and your appropriate domain name.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-09-19)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。