GithubHelp home page GithubHelp logo

ak545 / dns-domain-expiration-checker Goto Github PK

View Code? Open in Web Editor NEW
66.0 66.0 17.0 8.68 MB

This is a python script to check the expiration dates for the registration of your domains.

License: GNU General Public License v3.0

Python 100.00%

dns-domain-expiration-checker's People

Contributors

ak545 avatar cmer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dns-domain-expiration-checker's Issues

Relay access denied

Hi, I have a 2 problems with the script.

  1. *.eu domains don't work, script shows "Error" only or "Domains that caused errors".
  2. script won't to send email to me with output. Telegram works fine. At the end of script I see this only:

{'[email protected]': (454, b'4.7.1 [email protected]: Relay access denied')}

SMTP address is correct. Tried port 25, 587, 465.

I'm using:
python3 /home/myusername/domains/ddec.py -f /home/myusername/domains/domains.txt -c -i 5 -x 30 -t -e [email protected]

Any help please?
Thank you.

Feature request

Please add cache to whois requests to track all whois-text changes, and report to domain owner on any whois change.
This will allow you to see domain changes in time and to protect the domain from theft.

Error on some .cn and .ph domains

  1. aolab.cn 2021-05-28 Valid ( 268)
  2. aolab.com.cn 2021-05-28 Valid ( 268)
    Error trying to connect to socket: closing socket
  3. artsoptilab.cn - Is it Free?

Error trying to connect to socket: closing socket
7. 2020iwear.com.ph - Is it Free?
Error trying to connect to socket: closing socket
12. 2020iwear.ph - Is it Free?
com.ph and .ph is error
some .cn is error

Debian 12 - script doesn't work

Hello, some days ago I upgraded my server to debian 12. Script doesn't work now. Every domains got Error.
Any fix please?

keep a state (refresh when necessary)

After one run, it's possible to keep the nearest date of change and show unchanged data (from stored state) in subsequent runs.
Except:

  • if a --force flag is passed
  • the domains file is modified or different

That would limit unnecessary refreshes and avoid worrying about traffic limits.

Could be a file inside ~/.config/dns-domain-expiration-checker/state/* named after the inode of the domains-file + last modification date.

SyntaxError: invalid syntax

vitich@server:~/dns-domain-expiration-checker$ ./ddec.py -h
  File "./ddec.py", line 237
    f"\tThe {FLG}whois{FR} found in: {FLW}{str_tmp}"
                                                   ^
SyntaxError: invalid syntax
vitich@server:~/dns-domain-expiration-checker$ 

ru domains Error

ddec reports Error for all .ru domains, problem started 2 weeks ago, no problem with other zones.

Feature: allow amended custom subject text

Attached patch allows for adding additional text to the email subject, for incorporating run information (time started, domain-list information, etc) while still keeping the original subject "prefixed" for sorting

ddec.diff.txt

(Same style as previous patch)

$ ./ddec.py -h | grep -i email.subject
   -subject STRING, --email-subject STRING
                        Append custom text to the email subject (default is None)

support domain globbing `{}` `[]` `+` and `*`

Supporting globbing inside domain name could ease some tasks.
Eg: youtube.(com|org|net) or youtube.{com,org,net} or youtube[0-9].com

Some Python libraries like exrex do that pretty well.

error when checking '.gov' domains

It appears that the parser doesn't correctly follow the US' DOTGOV whois server output:

$ whois whitehouse.gov
% DOTGOV WHOIS Server ready
   Domain Name: WHITEHOUSE.GOV
   Status: ACTIVE

>>> Last update of whois database: 2020-12-06T21:01:19Z <<<

--

$ ddec.py -c -nb -d whitehouse.gov

------------------------------------------ -------------------- -----------------
Domain Name                                Expiration Date      Days Left        
------------------------------------------ -------------------- -----------------
    1. whitehouse.gov                      -                    Error            
------------------------------------------ -------------------- -----------------
Process complete.

(this error is the same for all .gov domains that i've tested)

Error on .nz domains

Hi,

Is it possible to add support for the following domains?
.co.nz
.nz
.blog
.com.au

We use Freeparking as our registrar for a lot of our domains, that does not seem to be supported well, any chance that can be looked at to?

Thanks

feature: don't SMTP_AUTH by default

This small patch changes the default from always auth to auth-when-selected via a new CLI flag.

ddec.diff.txt

Without this, the default is to always authorize the SMTP connection, which isn't always needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.