[젠투] 시스템 도메인 이름 설정하기...

랜덤여신의 이미지

시스템 도메인 이름 설정하기...

시스템의 도메인 이름을 설정하기 위해서 다음의 작업들을 하였습니다:
* /etc/dnsdomainname 파일 만들고 도메인 이름 적어넣기
* rc-update add domainname default 로 서비스에 등록하기

그런데 아직도 시스템 부팅시 로그인 하는 부분에서:
skuld.(none)
이렇게 나옵니다. (skuld 는 hostname)

어떻게 하면 도메인 이름을 설정할 수 있을까요?
또는, 위의 2개 작업 중에 잘못된 것이 있나요?

futari의 이미지

혹시 dhcp 쓰시나요?

domainname을 쓰시는 것 보면 아닌것 같긴 한데...

dhcp를 쓰면 사용자 설정 내용에 dhcp 자체 인식한 것을 덮어 쓰는 것으로 알고 있습니다.

그게 아니라면, 써주신 두가지로 항상 잘 사용해 왔습니다만 ;;

-------------------------
The universe is run by the complex interweaving of three elements: matter, energy, and enlightened self-interest.
- G'kar, Babylon 5

랜덤여신의 이미지

futari wrote:
혹시 dhcp 쓰시나요?
domainname을 쓰시는 것 보면 아닌것 같긴 한데...
dhcp를 쓰면 사용자 설정 내용에 dhcp 자체 인식한 것을 덮어 쓰는 것으로 알고 있습니다.
그게 아니라면, 써주신 두가지로 항상 잘 사용해 왔습니다만 ;;

아! dhcp 씁니다. 그것 때문에 그렇군요...
그렇다면 오늘 집에 가서 고정 IP 로 바꿔야겠군요... :D

음, 그런데 혹시 dhcp 를 쓰면서 도메인 이름을 설정할 수는 없습니까? (혹시 공유기 설정을 바꿔줘야 하나요?)

futari의 이미지

제가 dhcp 쓸 환경에 있던 적이 별로 없어서 제대로 된 답변이 맞는건지는 모르겠으나... ^^

gentoo.org wrote:
Code Listing 14: Examples for /etc/conf.d/net

(For DHCP)
iface_eth0="dhcp"
Some network admins require that you use the
hostname and domainname provided by the DHCP server.
In that case, add the following to let dhcpcd use them.
That will override your own hostname and domainname definitions.

dhcpcd_eth0="-HD"
If you intend on using NTP to keep your machine clock synchronized, use
the -N option to prevent dhcpcd from overwriting your /etc/ntp.conf file

dhcpcd_eth0="-N"

(For static IP)
iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
gateway="eth0/192.168.0.1"

(For rp-pppoe)
iface_eth0="up"

혹시 위의 상황에 해당되시면 -HD를 쓰지 않으시는게 방법인 것 같습니다.

아무래도 -HD를 기본으로 설정 하셨을 것 같진 않은 예감이.. 들지만 ^^;

-------------------------
The universe is run by the complex interweaving of three elements: matter, energy, and enlightened self-interest.
- G'kar, Babylon 5

랜덤여신의 이미지

고정 IP 로 잡아도, DHCP 쓸때 -HD 옵션을 줘봐도 안됩니다. :cry:

futari의 이미지

흠흠 ^^;

요번엔 한번 해보고 답변 답니다.

그...

domainname 명령어로 확인하였을 때 domainname이 나타나려면

/etc/nisdomainname 에 domainname을 입력하셔야 합니다.

dns를 통한 domainname은 별개의 것이더군요.

알고봤더니 저도 서버 머신은 null이더라는 ^^;;

(데스크탑엔 nis를 지정했더군요...)

자세한건 서비스 스크립트를 ^^;;

-------------------------
The universe is run by the complex interweaving of three elements: matter, energy, and enlightened self-interest.
- G'kar, Babylon 5

aqwerf의 이미지

다음과 같이 하여야 정상적으로 보입니다.

예를 들어 hello.world.com 이라면

/etc/hostname
hello

/etc/dnsdomainname
world.com

/etc/hosts
127.0.0.1 hello.world.com hello localhost

hosts 파일에 적을 때 반드시 FQDN(fully qualified domain name) 을 먼저 적어주어야 합니다.

이거를 아래처럼 반대로 적으면 (none)으로 보입니다.

10.1.1.1 hello hello.world.com

futari의 이미지

aqwerf wrote:
hosts 파일에 적을 때 반드시 FQDN(fully qualified domain name) 을 먼저 적어주어야 합니다.

이거를 아래처럼 반대로 적으면 (none)으로 보입니다.

저 경우 외에 생기는 문제 같습니다.

저도 gentoo를 서버와 데스크탑 두 머신에서 사용하는데,

서버에는 제대로 설정이 적혀 있음에도 불구하고 (none) 으로 나오고 있더라구요. (어차피 runlevel 등록도 안해놨었지만...)

스크립트를 보니 /bin/domainname 으로 설정을 nis부분 외에는 하지 않는 것 같았습니다.

서비스로 올리면

/etc/nisdomainname 설정이 있는 경우에만

/bin/domainname 을 실행시키더군요...

-------------------------
The universe is run by the complex interweaving of three elements: matter, energy, and enlightened self-interest.
- G'kar, Babylon 5

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.