- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp.py
More file actions
Latest commit
24 lines (22 loc) · 618 Bytes
/
Copy pathapp.py
File metadata and controls
24 lines (22 loc) · 618 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
fromisp_manager.credentialsimportCredentials
fromisp_manager.serverimportServer
fromisp_managerimportIspManager
fromisp_manager.func.domainimportAdd
user=Credentials('user', 'password')
server=Server('delta.hoster.net')
func=Add()
func.set_additional({
'name': 'domain.ru',
'ip': '127.0.0.1',
'ns': 'dns3.domain.net. dns1.domain.net. dns2.domain.net.',
'ns_list': '',
'mx': 'mail',
'mx_list': '',
'elid': '',
'sok': 'ok',
})
isp_manager=IspManager()
isp_manager.set_server(server)
isp_manager.set_user(user)
isp_manager.set_func(func)
print(isp_manager.execute())