[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: domain-name option during the installation of Debian



Thanks for posting plain text... but please don't top post:-
https://wiki.debian.org/DebianMailingLists#Interleaved


On 08/03/14 13:48, Martin T wrote:
> Scott,
> 
> what I meant with this ping example is that domain name provided 
> during the installation(lab.net in my case) seems to be in use only
> in one place which is the /etc/network/interfaces file "dns-search"
> line.

If you only put the domain name into that section of the installer then
it's stored in /etc/network/interfaces. But clearly it is being
stored elsewhere - if you comment out that dns search line and then:-
$ hostname -d

man getdomainname give some clues.

> This means that if I execute "host www",

As previously noted - www is a subdomain, not a host. "host" queries the
DNS, which has it's own set of rules for guessing the answer.

> it asks DNS server for A record for www.lab.net or if I execute "ping
> mail", then I'm actually executing "ping mail.lab.net".

I can't reproduce your results. Perhaps that points to the DNS server setup?

<snipped>
> 
> However, the question itself is simple

So am I, but I don't understand your question (it seems ambiguous) :)

> - where and how is the domain name, which I inserted during the
> installation, used?

Not trying to be obtuse but...
Where is it *stored*? Or where is it *used*?
The former I'm not certain of (see comment on editing interfaces) and
the latter is a list I don't know the full extent of.


> So far it seems to be used only for completing the domain names.

Yes (AFAIK). But that's used for a lot of things (using getdomainname).

> 
> 
> regards, Martin
> 
> On Sat, Mar 8, 2014 at 2:04 AM, Scott Ferguson 
> <scott.ferguson.debian.user@gmail.com> wrote:
>> On 08/03/14 12:40, Martin T wrote:
>>> Hi,
>>> 
>>> during the installation of Debian, one is asked for "domain
>>> name".
>> 
>> If it's not set automatically (by arping?)
>> 
>>> Only place where it seems to be used is for completing the
>>> FQDN's:
>>> 
>>> root@localhost:~# find / \( \( -path "/proc" -o -path "/sys" \)
>>> -a -prune \) -o \( -type f -a -exec grep -iH "lab.net" {} \; \) 
>>> /var/log/installer/status:Maintainer: Rémi Denis-Courmont
>>> <remi@remlab.net> /var/log/installer/status:Maintainer: Rémi
>>> Denis-Courmont <remi@remlab.net> 
>>> /var/log/installer/cdebconf/questions.dat:Value: lab.net 
>>> /etc/network/interfaces: dns-search lab.net root@localhost:~#
>>> 
>>> 
>>> So in case I execute "ping www", it is translated automatically
>>> to "ping www.lab.net".
>> 
>> ?  Do you mean when running ping from the local machine? (www.
>> should be a subdomain).  The only way I'd see that was if it was
>> registered in a local dns, /etc/hosts, or as a result of .htaccess
>> (in a web server).
>> 
>>> 
>>> However, where and how is the domain-name used during/after
>>> Debian installation?
>> 
>> I'm having a particularly thick day and don't understand the
>> question. Do you mean where is it stored, and an exhaustive list of
>> it's applications?
>> 
>>> 
>>> 
>>> 
>>> regards, Martin
>>> 
>>> 
>> 
>> Puzzled by question and your results from ping.
>> 
>> Kind regards
>> 
>> 
>> -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
>> with a subject of "unsubscribe". Trouble? Contact
>> listmaster@lists.debian.org Archive:
>> [🔎] 531A7AAA.6030501@gmail.com">https://lists.debian.org/[🔎] 531A7AAA.6030501@gmail.com
>> 
> 


Reply to: