Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7123

Validating string for FDQN

From Eric <eric.wong.t@gmail.com>
Newsgroups comp.lang.python
Subject Validating string for FDQN
Date Mon, 6 Jun 2011 17:40:29 -0700 (PDT)
Organization http://groups.google.com
Lines 8
Message-ID <d30814aa-494f-457f-8a56-5ebe802f4725@z7g2000prh.googlegroups.com> (permalink)
NNTP-Posting-Host 69.28.149.29
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1307407230 21032 127.0.0.1 (7 Jun 2011 00:40:30 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Tue, 7 Jun 2011 00:40:30 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info z7g2000prh.googlegroups.com; posting-host=69.28.149.29; posting-account=iuRmZQoAAAB7mz6hBsIW5UN33iSMoFZc
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-Header-Order HUALESNKRC
X-HTTP-UserAgent Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8,gzip(gfe)
Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!feed.ac-versailles.fr!exabot.com!proxad.net!feeder1-2.proxad.net!74.125.46.80.MISMATCH!postnews.google.com!z7g2000prh.googlegroups.com!not-for-mail
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:7123

Show key headers only | View raw


Hello,

Is there a library or regex that can determine if a string is a fqdn
(fully qualified domain name)? I'm writing a script that needs to add
a defined domain to the end of a hostname if it isn't already a fqdn
and doesn't contain the defined domain.

Thanks.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Validating string for FDQN Eric <eric.wong.t@gmail.com> - 2011-06-06 17:40 -0700
  Re: Validating string for FDQN harrismh777 <harrismh777@charter.net> - 2011-06-06 20:55 -0500
  Re: Validating string for FDQN Chris Angelico <rosuav@gmail.com> - 2011-06-07 12:50 +1000
  Re: Validating string for FDQN Philip Semanchuk <philip@semanchuk.com> - 2011-06-06 23:10 -0400
  Re: Validating string for FDQN Nobody <nobody@nowhere.com> - 2011-06-07 06:23 +0100
    Re: Validating string for FDQN Chris Angelico <rosuav@gmail.com> - 2011-06-07 15:52 +1000
      Re: Validating string for FDQN Chris Torek <nospam@torek.net> - 2011-06-07 06:20 +0000
      Re: Validating string for FDQN Nobody <nobody@nowhere.com> - 2011-06-07 21:46 +0100

csiph-web